Express-fileupload can't upload file after deploying my nodejs app on

Express-fileupload can’t upload file after deploying my nodejs app on free tier, but it works locally on my computer, the user profile picture was uploaded on one of my server folder successfully locally, but not working on render web service where my server API is


There will always be differences between environments: development mode/Local, production mode/Render, etc. These differences need to be considered and configured as required for your own app in each environment.

Render instances have an ephemeral filesystem, meaning any file written to the instance after it has booted will be lost when it next restarts (e.g. spun down if on free instance type, next deploy, manual restart, etc.).

If you want to persist file uploads on your service, you’ll need to have a persistent store, e.g. a Render Disk (which is chargeable and also requires a paid instance type) or an external service like AWS S3.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.