Image gets deleted after a restart. Store in AWS S3 bucket? #38
0perationPrivacy
started this conversation in
Ideas
Replies: 1 comment 5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since this is hosted on a container (Heroku dyno), the filesystem gets a clean start with each new deploy. So you lose the folder which stores MMS images.
https://help.heroku.com/K1PPS2WM/why-are-my-file-uploads-missing-deleted
One workaround is to store them in an AWS S3 bucket (accessed only from the server, not open to the public, of course).
Those images will eventually be deleted once the timer expires (7 days?).
The only issue is now we're hosting images outside of Heroku. To most people it does not matter as when you send an MMS, you really don't need it after the other party has downloaded it (a few hours?).
So this seems like an optional wish list item and some privacy enthusiasts may not like this. It could be a toggle option in settings to store them longer than the first restart (which Heroku says may be daily), while also specifying the number of days.
Vote: Thumbs Up 👍🏻 or Down 👎🏻 if u care enough to eventually want to see this in the roadmap. Comment for suggestions.
Beta Was this translation helpful? Give feedback.
All reactions