-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3: tracking overall upload progress for multiple files. #785
Comments
Ah, found a way around using s3.upload(params, function (err, data) {
...
}).on('httpUploadProgress', function(progress) {
// Here you can use `this.body` to determine which file this particular
// event is related to and use that info to calculate overall progress.
}); I hope this will help someone else. |
@andrey-bahrachev |
@chrisradek Thanks for quick response. |
I've merged in #788. This will be available via npm with the next release of the SDK, otherwise you can install the SDK directly from github. |
Brilliant! Thanks a lot! |
@andrey-bahrachev Do you have an example how you're monitoring overall progress based on |
@rossthedevigner Oh, it's been a while, so chances are that things might have changed since then, but here it is:
|
Thanks a lot! |
God bless you for this! |
@andrey-bahrachev with the above approach, If i make 20 to 30k calls it would be really slow. Is there any other approach to do bulk upload to S3 ? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hey there!
Currently it's possible to keep track of upload progress only on per file basis, but there's no way of calculating the overall upload progress when multiple files are uploaded in parallel. It would be really great to have such ability. Thanks.
The text was updated successfully, but these errors were encountered: