Procházet zdrojové kódy

Abort all chunk requests when aborting the multipart upload

Maciek Pekala před 6 roky
rodič
revize
ce60103fea

+ 3 - 0
packages/@uppy/aws-s3-multipart/src/MultipartUploader.js

@@ -245,6 +245,9 @@ class MultipartUploader {
   }
   }
 
 
   _abortUpload () {
   _abortUpload () {
+    this.uploading.slice().forEach(xhr => {
+      xhr.abort()
+    })
     this.options.abortMultipartUpload({
     this.options.abortMultipartUpload({
       key: this.key,
       key: this.key,
       uploadId: this.uploadId
       uploadId: this.uploadId