0
votes

Has anyone encountered this issue where your file links (using Active Storage and AWS-S3) suddenly just go missing after - redeploying/updating your app on Heroku?

I'm currently working on an app using Rails 6, Ruby 2.6 and Postgres. This is the very first time I've experience the missing link issue.

Just to give a clearer picture. The file link is clickable. Hence, it means that i.e. user.avatar.attached? returns true.

Upon clicking on the file link, i was returned with the 404 error and message saying page not found.

1

1 Answers

0
votes

Was your file successfully uploaded to AWS S3? Perhaps share your file url ? I am using AWS S3 too and my files has this url: .s3.amazonaws.com , Heroku will delete files after a few hours if it is not hosted on AWS