Skip to content

Commit fbfce55

Browse files
authored
fix(lib-storage): ignore overall data content-length for UploadPart operation (#6131)
* Specify ContentLength for part uploads * Fix spacing * fix(lib-storage): ignore overall data content-length for UploadPart operation
1 parent 3682a43 commit fbfce55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/lib-storage/src/Upload.ts

+3
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ export class Upload extends EventEmitter {
276276
const partResult = await this.client.send(
277277
new UploadPartCommand({
278278
...this.params,
279+
// dataPart.data is chunked into a non-streaming buffer
280+
// so the ContentLength from the input should not be used for MPU.
281+
ContentLength: undefined,
279282
UploadId: this.uploadId,
280283
Body: dataPart.data,
281284
PartNumber: dataPart.partNumber,

0 commit comments

Comments
 (0)