Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upload images to my heroku app

I am following a tutorial on deploying a Rails app to Heroku. It is using a free heroku account with a name like tranquil-mountain-51138.herokuapp.com. The tutorial does not cover adding images. I have a simple test site up and working. Now, I'd like to add a few images to the site, but have no idea how to do this.

On non-heroku, non-rails apps I use FileZilla to ftp files to the server, so I'm very familiar with that. Is there something similar for heroku?

Would someone point me to a tutorial on how to do this?

Much appreciated.

EDITED I would like to upload a photo to appear on my public/index.html page. That's all. I created and deployed a simple job-tracking app, which does not need pictures. Now I am just looking for a "how to" on adding images to an app on heroku - for learning purposes.

Thanks

like image 517
John Cowan Avatar asked Jul 11 '17 17:07

John Cowan


1 Answers

If I'm not mistaken, Heroku doesn't allow writes on its filesystem, so, you would not be able to upload a file t your application at Heroku. That's why they suggest you to use and integrate Amazon S3 as a storage option.

like image 64
Allam Matsubara Avatar answered Sep 29 '22 23:09

Allam Matsubara