1

A few days ago I started using Heroku to deploy my project but I am having a problem and it is that after a certain period of time the images that I upload to the app are deleted and I do not know how to solve it. I would like to know if there is any way to configure it or if I would have to use a specific Heroku service. Currently I put an UPTIME ROBOT to prevent the dynos from sleeping but still it was not solved... I am waiting for an answer, thank you.

Bruno Rohée
  • 3,436
  • 27
  • 32
rodro 34
  • 11
  • 1
  • 1
    Heroku has an ephemeral filesystem which means that nothing will ever be guaranteed to be saved. You're better served storing those images in a database and/or on the cloud. – mechanical_meat Nov 11 '21 at 16:23
  • Does this answer your question? [After git push heroku - uploaded files on Heroku are lost](https://stackoverflow.com/questions/11246736/after-git-push-heroku-uploaded-files-on-heroku-are-lost) – ChrisGPT was on strike Nov 11 '21 at 16:48
  • Maybe this helps https://stackoverflow.com/a/65553997/9095551 – Beppe C Nov 12 '21 at 20:41

0 Answers0