-
Notifications
You must be signed in to change notification settings - Fork 643
Closed
Labels
feature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.
Description
Describe the bug
The httpUploadProgress event is only called upon completion of the file upload when uploading small files (~3mb) making it not possible to actually track the incremental upload progress. The v2 SDKs equivalent component AWS.S3.ManagedUpload() did fire this event regularly even for small files.
This is also referenced here: #2206
Your environment
SDK version number
"@aws-sdk/client-lambda": "^3.43.0"
"@aws-sdk/client-s3": "^3.44.0"
"@aws-sdk/credential-providers": "^3.43.0"
"@aws-sdk/lib-storage": "^3.44.0"
Is the issue in the browser/Node.js/ReactNative?
Browser
Details of the browser/Node.js/ReactNative version
Browsers:
Chrome: 96.0.4664.110
Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.62)
Internet Explorer: 11.0.19041.1202
Steps to reproduce
const uploader = new Upload({
client: s3Client,
params: {
Bucket: "my-bucket",
Key: "/folder/file.mov",
Body: file
},
leavePartsOnError: true
});
uploader.on('httpUploadProgress', function (progress) {
console.log('Progress %i, part: %i', progress.loaded, progress.part);
});
Observed behavior
The httpUploadProgress event is only called upon completion of the file upload, not incrementally.
Expected behavior
The httpUploadProgress event should be called multiple times as the file is uploaded. This was the behavior seen when using AWS's JavaScript SDK v2
Additional context
The files I'm uploading are roughly 2-3MB.
gamma425, grothem, Narretz, shanlalit, jonathanlb and 2 more
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.