Skip to content

Call the AbortMultipartUpload function and call the RetryUpload progress bar problem #2217

Answered by jmklix
xiaonaiquan asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think you want to be calling AbortMultiPartUpload, because as noted in the API docs:

By default, multi-part uploads will remain in a FAILED state if they fail, or a CANCELED state if they were canceled. Leaving failed uploads around still costs the owner of the bucket money. If you know you will not be retrying the request, abort the request after canceling it or if it fails and you don't intend to retry it.

So you only want to call abort if you have no intention of retrying the request. If the TransferStatus is in the failed state, that is when you want to call RetryUpload.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@xiaonaiquan
Comment options

@jmklix
Comment options

@xiaonaiquan
Comment options

@jmklix
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants