How to store user uploaded files after app deployment?

Active3 hr before
Viewed126 times

5 Answers


I am deploying an app where users can upload images.,So far I made it so that the files get stored locally on my machine, but I have no clue if the files will still be uploaded to that directory, once the app is deployed., If I have data that appears normally distributed, but it contains a lot of zeros, are there issues with assuming a normal distribution?

 Pretag team - issue, fix, solve, resolve

Files are uploaded to the app but then disappear or are deleted after a while.,Engage with a community of passionate experts to get the answers you need,

 Pretag team - issue, fix, solve, resolve

The prepend and append methods allow you to write to the beginning or end of a file:,Finally, the deleteDirectory method may be used to remove a directory and all of its files:,When using the local driver, all file operations are relative to the root directory defined in your filesystems configuration file. By default, this value is set to the storage/app directory. Therefore, the following method would write to storage/app/example.txt:

 Pretag team - issue, fix, solve, resolve

Apps written in supported frameworks often run unmodified on Cloud Foundry if the app design follows a few simple guidelines. Following these guidelines facilitates app deployment to Cloud Foundry and other cloud platforms.,For app management purposes, Cloud Foundry may need to stop and restart your app instances. If this occurs, Cloud Foundry performs the following steps:,Apps running on Cloud Foundry should not write files to the local file system for the following reasons:

To use a .cfignore file, create a text file named .cfignore in the root of your app directory structure. In this file, specify the files or file types you wish to exclude from upload. For example, these lines in a .cfignore file exclude the “tmp” and “log” directories.


Installation and getting started with Storage.,To upload a file directly from the users device, the putFile method on a reference accepts a string path to the file on the users device. For example, you may be creating an app which uploads users photos. The React Native Firebase library provides Utils to help identify device directories:,The putFile method returns a Task, which if required, allows you to hook into information such as the current upload progress:

# Install & setup the app module
yarn add @react - native - firebase / app

# Install the storage module
yarn add @react - native - firebase / storage

# If you 're developing your app using iOS, run this command
cd ios / && pod install
load more v

Other "uploaded-store" queries related to "How to store user uploaded files after app deployment?"