AbortMultipartUpload

Last update:2022-03-01 18:01:10

You can call AbortMultipartUpload to abort the multipart upload task. Please notice that UploadPart and ListParts will be unavailable once you called AbortMultipartUpload or CompleteMultipartUpload, and the storage spaces which are taken by the uploaded parts of the object will be released as well. In addition, the upload tasks ongoing will not succeed.
Therefore, you may have to call the interface several times to terminate the multipartupload task as well as to release the storage space completely.
Please call ListParts to check if the part list of the task is empty.

Request syntax

DELETE /ObjectName?uploadId=uplaodID HTTP/1.1
Host: Bucket.Endpoint
Date: date
Authorization: authorizatiion

URI request parameters

Name Description Required
uploadId The upload ID which identify the upload task. Yes

Request header

Please use Common Request Headers .

Request body

None

Response syntax

HTTP/1.1 status_code
x-wos-request-id: request id
Date: date
Content-Length: 0
Connection: close
Server: WS-Web-Server

Response header

Please use Common Response Headers .

Response body

None

Special error

Http Status Error Code Message
404 Not Found NoSuchUpload The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed.

Example

DELETE /example-object?uploadId=VXBsb2FkIElEIGZvciBlbHZpbmcncyBteS1tb3ZpZS5tMnRzIHVwbG9hZ HTTP/1.1
Host: bucket.s3-cn-east-1.wcsapi.com
Date: Mon, 1 Nov 2010 20:34:56 GMT
Authorization: WOS AKIAIOSFODNN7EXAMPLE:0RQf3/cRonhpaBX5sCYVf1bNRuU=


HTTP/1.1 200 OK
x-wos-request-id: 996c76696e6727732072657175657374
Date: Mon, 1 Nov 2020 20:34:56 GMT
Content-Length: 0
Connection: close
Server: WS-Web-Server
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!