Skip to main content

When using a cloud based platform to deploy an application, uploading static content is always an issue. These platforms have an ‘ephemeral file system’, so you can temporarily write files to disk. A common practice is to upload said content to specialized services like Amazon S3.

Here’s how to upload pictures from an Ionic app based on a NodeJS backend deployed on Heroku. The code example was taken from a Heroku project (

https://github.com/heroku/nibs

).

This can be applied to any kind of files, including large videos or pictures…

How to efficiently manage file storage with Heroku