Question

How to deploy Node JS App With file upload

How Can You easily deploy Node Js app with the capability to save image files to disk

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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