File gets deleted in render webservice after minutes of uploading

hey, I just hosted an express app with a mongoose as in DB on render but once I upload files to render server It gets deleted after minutes. Can someone help with this because it’s a social media app and media are so important

  • List item

er

Hi there,

The file systems on our services are ephemeral - so uploads are not persisted across deploys and restarts so you’d need to be using a disk (https://render.com/docs/disks) attached to your service to persist any uploads or use a Cloud storage solution like Amazon s3 etc,

John.

John B

I tried to upload but I keep a 500 error