I deployed my first Heroku app yesterday, and everything worked great.
In my app you can upload an image, I did and could see it on the "show" page. However, today the image disappeared. Everything else seems to work just fine. The application is working just fine on my local machine as well as on Heroku, other than the image which is not there.
What may be the problem? How can I make sure it doesn't happen again?
Image uploading and resizing with a prebuilt S3 setup. Free cloud storage.
Heroku does not provide any sort of persistent storage on dynos. If you need to persist files across sessions, you must use object storage such as Amazon S3.
Heroku's physical infrastructure is hosted and managed within Amazon's secure data centers and utilize the Amazon Web Service (AWS) technology.
Heroku is file system is temporary. Alternative you can save the images as a url, until you are ready for aws...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With