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:
Renée Kooi 2018-07-19 13:08:49 +02:00 committed by GitHub
commit 71d1f4dd4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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