Skip to content

Commit

Permalink
@uppy/aws-s3-multipart: fix resume single-chunk multipart uploads (#4528
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aduh95 authored Jun 26, 2023
1 parent e289c84 commit ae3a0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3-multipart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class HTTPCommunicationQueue {

async resumeUploadFile (file, chunks, signal) {
throwIfAborted(signal)
if (chunks.length === 1) {
if (chunks.length === 1 && !chunks[0].shouldUseMultipart) {
return this.#nonMultipartUpload(file, chunks[0], signal)
}
const { uploadId, key } = await this.getUploadId(file, signal)
Expand Down

0 comments on commit ae3a0e7

Please sign in to comment.