statistics in vBulletin
  1. This site is not associated with any agent or consultant and colleges/universities. Views & Opinions expressed here are solely author's comment and is not responsible for them. Please don't make derogatory or abusive remarks against anyone.
  2. Prepare for GMAT, CAT, IIT, PMT & Other Entrance Exams. Post your questions and get answers. Collaborate, Learn & Grow.
    Dismiss Notice
  3. Hi Please download our Android App and enjoy the benefit of this forum on your smartphone. Download in Playstore
    Dismiss Notice
  4. Find Best Colleges in your Area, review them and share feedback.
    Dismiss Notice

how to store files in AWS S3 with aws amplify

Discussion in 'Programming/Development/Coding' started by Sunil, Nov 21, 2020 at 3:32 PM.

  1. Sunil

    Sunil Member

    I am building a webapp with aws amplify. I want user to upload file or copy/paste text and then store that data in AWS S3. How can i do that? Any guidance will be much appreciated.
  2. bharose

    bharose New Member

    You can run following commands to add storage to your project;

    amplify add storage
    ? Please select from one of the below mentioned services (Use arrow keys) ❯ Content (Images, audio, video, etc.)   NoSQL Database
    amplify push
    npm install -S aws-amplify
    In your app’s entry point i.e. App.js, import and load the configuration file aws-exports.js which has been created and replaced into /src folder in the previous step.

    import Amplify, { Storage } from 'aws-amplify';
    import awsconfig from './aws-exports';
    Then you can visit to configure your bucket and for more information.
  3. Sunil

    Sunil Member

    Thanks for that, it worked. I am learning more to handle it.

Share This Page