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 |
Answered by
adam-fowler
Aug 25, 2022
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 |
3 replies
Answer selected by
adam-fowler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can throw an error from the progress function to cancel a multipart upload.
If you called
multipartUploadwithabortOnFailset to true it will abort the multipart upload and clean up.If you call
multipartUploadwithabortOnFailset tofalseinstead of aborting the multipart upload on an error being thrown it throws a new error typeS3ErrorType.multipart.abortedUploadwhich includes all the information you need to resume the upload in aS3.ResumeMultipartUploadRequestand the error that caused the upload to fail. You can then use theS3.ResumeMultipartUploadRequestobject inresumeMultipartUploadto resume the multipart upload.You can find out more here