Add Storage

Important

The following content applies if you are already using the AWS Mobile CLI to configure
your backend. If you are building a new mobile or web app, or you're adding cloud
capabilities to your existing app, use the new AWS Amplify CLI instead. With the new Amplify CLI, you can use all of the features described in Announcing the AWS Amplify CLI toolchain, including AWS CloudFormation functionality that provides additional workflows.

Set Up the Backend

The AWS Mobile CLI and AWS Amplify library make it easy to store and manage files
in the cloud from your JavaScript app.

BEFORE YOU BEGIN

The steps on this page assume you have already completed the steps on Get Started.

Enable the User File Storage feature by running the following commands in the root
folder of your app.

awsmobile user-files enable
awsmobile push

Connect to the Backend

The examples in this section show how you would integrate AWS Amplify library calls
using React (see the AWS Amplify documentation to use other flavors of Javascript).

The following simple component could be added to a create-react-app project to present an interface that uploads images and download them for display.