From ae3a0e7016e44044374f984a98607c4faa298bbe Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 26 Jun 2023 13:56:46 +0200 Subject: [PATCH] @uppy/aws-s3-multipart: fix resume single-chunk multipart uploads (#4528) --- packages/@uppy/aws-s3-multipart/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@uppy/aws-s3-multipart/src/index.js b/packages/@uppy/aws-s3-multipart/src/index.js index e1f84615aa..6883e7b3c4 100644 --- a/packages/@uppy/aws-s3-multipart/src/index.js +++ b/packages/@uppy/aws-s3-multipart/src/index.js @@ -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)