Skip to content

Commit b6d357e

Browse files
fix large file, mulitipart upload to s3 (#4141)
* fix large file, mulitipart upload to s3 * add changelog Co-authored-by: Emile Indik <[email protected]>
1 parent b0fd315 commit b6d357e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "ManagedUpload",
4+
"description": "fix MalformedXML error for relatively large file via managed upload"
5+
}

lib/s3/managed_upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ AWS.S3.ManagedUpload = AWS.util.inherit({
574574
if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) return null;
575575
partInfo.ETag = data.ETag;
576576
self.doneParts++;
577-
if (self.isDoneChunking && self.doneParts === self.numParts) {
577+
if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) {
578578
self.finishMultiPart();
579579
} else {
580580
self.fillQueue.call(self);

0 commit comments

Comments
 (0)