question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch Storage.put

See original GitHub issue

** Which Category is your question related to? ** Storage

** What AWS Services are you utilizing? ** S3

** Provide additional details e.g. code snippets ** From https://aws-amplify.github.io/amplify-js/api/classes/storageclass.html#put, I am able to Storage.put to put 1 file to S3 at a time. I have a use case that users submit a few photos at a time, in which case I am looking for batch Storage.put alternative. Is this possible given what S3 currently provides?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
manueliglesiascommented, Mar 21, 2019

The S3 service doesn’t support it. Amplify could help a little or you could do something like:

const promises = [];
for(let file of files) {
  promises.push(Storage.put(file))
}

await  Promise.all(promises);
0reactions
github-actions[bot]commented, Jun 12, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performing large-scale batch operations on Amazon S3 ...
You can use S3 Batch Operations through the AWS Management Console, AWS CLI, Amazon SDKs, or REST API. Use S3 Batch Operations to...
Read more >
Is it possible to perform a batch upload to amazon s3?
You can use this method to batch upload files to S3 very fast. ... No, the S3 PUT operation only supports uploading one...
Read more >
Persist task data to Azure Storage with the Batch service API
The Batch service API supports persisting output data to Azure Storage for tasks and job manager tasks that run on pools with Virtual...
Read more >
Storage - Upload files - JavaScript - AWS Amplify Docs
The Put method uploads files into Amazon S3. It returns a {key: S3 Object key} object on success:.
Read more >
Sending batch requests | Cloud Storage
The Cloud Storage JSON API supports batching, to allow your client to put several API calls into a single HTTP request. Examples of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found