Abort Multipart Upload

Last Updated: Mar 21, 2017

This interface can be used to abort a Multipart Upload event based on the Upload ID you provide. When a Multipart Upload event is aborted, you cannot use this Upload ID to perform any operations and the uploaded parts of data will be deleted.

Request syntax

  1. DELETE /ObjectName?uploadId=UploadId HTTP/1.1
  2. Host: BucketName.oss-cn-hangzhou.aliyuncs.com
  3. Date: GMT Date
  4. Authorization: Signature

Detail analysis

  • When you abort a Multipart Upload event, parts still being uploaded will not be deleted. Therefore, if concurrent accesses exist, you need to call the Abort Multipart Upload interface several times to completely release the space of the OSS.
  • If the entered Upload ID does not exist, the OSS returns an error 404 with the error code: NoSuchUpload.

Example

Request example:

  1. Delete /multipart.data?&uploadId=0004B9895DBBB6EC98E HTTP/1.1
  2. Host: oss-example.oss-cn-hangzhou.aliyuncs.com
  3. Date: Wed, 22 Feb 2012 08:32:21 GMT
  4. Authorization: OSS qn6qrrqxo2oawuk53otfjbyc:J/lICfXEvPmmSW86bBAfMmUmWjI=

Return example:

  1. HTTP/1.1 204
  2. Server: AliyunOSS
  3. Connection: keep-alive
  4. x-oss-request-id: 059a22ba-6ba9-daed-5f3a-e48027df344d
  5. Date: Wed, 22 Feb 2012 08:32:21 GMT
Thank you! We've received your feedback.