How do I suspend, continue or cancle task when use S3 multipartUpload #616
-
How do I suspend, continue or cancel task when using S3 multipart upload |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can throw an error from the progress function to cancel a multipart upload. If you called If you call You can find out more here |
Beta Was this translation helpful? Give feedback.
You can throw an error from the progress function to cancel a multipart upload.
If you called
multipartUpload
withabortOnFail
set to true it will abort the multipart upload and clean up.If you call
multipartUpload
withabortOnFail
set tofalse
instead of aborting the multipart upload on an error being thrown it throws a new error typeS3ErrorType.multipart.abortedUpload
which includes all the information you need to resume the upload in aS3.ResumeMultipartUploadRequest
and the error that caused the upload to fail. You can then use theS3.ResumeMultipartUploadRequest
object inresumeMultipartUpload
to resume the multipart upload.You can find out more here