mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 19:23:55 +00:00
Merge pull request #967 from pekala/abort-chunk-requests-when-aborting-upload
Abort all chunk requests when aborting the S3 multipart upload
This commit is contained in:
commit
71d1f4dd4e
1 changed files with 3 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ class MultipartUploader {
|
|||
}
|
||||
|
||||
_abortUpload () {
|
||||
this.uploading.slice().forEach(xhr => {
|
||||
xhr.abort()
|
||||
})
|
||||
this.options.abortMultipartUpload({
|
||||
key: this.key,
|
||||
uploadId: this.uploadId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue