Handling file uploads in a deployed app

Hello, I just deployed an express app to heroku and I discovered that image uploads which works perfectly when on my local machine, doesn’t work the same way once deployed. The images disappear after a couple of minutes.
Any ideas how to tackle this?

Heroku’s file system, as you have discovered, is temporary.

You should look into storage solutions, like AWS buckets.