Amplify-js: how to show percentage of uploading when using Storage.put to upload file to S3?

Created on 7 Aug 2018  路  3Comments  路  Source: aws-amplify/amplify-js

Hi, I just cannot find how.

Storage feature-request question

Most helpful comment

How to pass progressCallback property into outside public variable?

All 3 comments

Hi @simon998yang, this is actually a feature that we will begin work on this week.

We will update this issue when the feature has been implemented.

@simon998yang this is already merged and publish #1830

Here a code snippet on how to use it

Storage.put('your/s3/key', 'data', {
  progressCallback(progress) {
    console.log(`Uploaded: ${progress.loaded}/${progress.total}`);
  },
});

How to pass progressCallback property into outside public variable?

Was this page helpful?
0 / 5 - 0 ratings