mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
@uppy/aws-s3-multipart: fix TypeError (#4748)
When chunks have already been uploaded, they are removed from memory. If the user resume an upload whose first chunk has been uploaded, they were getting a `TypeError` back.
This commit is contained in:
parent
0e2d8f63d5
commit
91b7ca370e
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ class HTTPCommunicationQueue {
|
|||
|
||||
async resumeUploadFile (file, chunks, signal) {
|
||||
throwIfAborted(signal)
|
||||
if (chunks.length === 1 && !chunks[0].shouldUseMultipart) {
|
||||
if (chunks.length === 1 && chunks[0] != null && !chunks[0].shouldUseMultipart) {
|
||||
return this.#nonMultipartUpload(file, chunks[0], signal)
|
||||
}
|
||||
const { uploadId, key } = await this.getUploadId(file, signal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue