How Can You easily deploy Node Js app with the capability to save image files to disk
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello @velazquezsheldon
In App Platform, the local filesystem on the host instances running App Platform containers is ephemeral. When deployments happen or containers are replaced the local disk storage will be LOST and not recoverable. To use App Platform you must re-implement or reconfigure your app to use other forms of persistent storage such as Spaces (where you can save your images). The local disk should only be used as temporary storage.
You can take look at our sample Node.js app and its limitations at Link
Alternatively, you can choose to deploy your app in Droplet instead of App Platform. You can refer to the tutorial link below for more information:
How To Set Up a Node.js Application for Production
Best, Dikshith