AbortMultipartUpload
Last Updated:2021-12-08
Interface Description
This interace can be used to abort a MultipartUpload request. After the BOS receives this command, it clears the uploaded data.
Request
-
Request syntax:
DELETE /<ObjectKey>?uploadId=UploadId HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <Date> Authorization: <AuthorizationString> Content-Length: <ContentLength>
-
Request header field
No special request header field.
-
Query parameters
Name Type Parameter Position Description Required? uploadId String Query Parameter The MultipartUpload ID Yes
Response
-
Response header field
No special header field.
-
Response element
None
Considerations
If some parts are still uploaded when a Multipart Upload event is aborted, this abortion operation cannot delete such parts. Therefore, if a concurrent access occurs, you need to call the Abort Multipart Upload API for several times to release the storage space in BOS completely.
Example
-
Request example
DELETE /ObjectName?uploadId=a44cc9bab11cbd156984767aad637851 HTTP/1.1 Host: BucketName.bj.bcebos.com Date: Wed, 06 Apr 2016 06:34:40 GMT Authorization: AuthorizationString
-
Response example
HTTP/1.1 204 No Content x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 Date: Wed, 06 Apr 2016 06:34:40 GMT Content-Length: 0 Connection: keep-alive Server: BceBos