abortUpload method
Written by
Aborts an upload and deletes all object parts that were saved from Object Storage. If the abort upload request was received during the uploading of any part, no result is guaranteed.
We recommend that you get a list of parts after aborting the upload and, if it is not empty, resend the request. Abort requests should be sent until the list of the parts becomes empty.
Request
DELETE /{bucket}/{key}?uploadId=UploadId HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
key |
Object key. |
Query parameters
Parameter | Description |
---|---|
uploadId |
ID of the multipart upload returned by Object Storage at startup. |
Headers
Use the necessary common request headers in requests.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.
Additionally, Object Storage may return errors described in the table below.
Error | Description | HTTP code |
---|---|---|
NoSuchUpload |
The specified upload doesn't exist. The specified upload ID might be incorrect or the upload was completed or deleted. | 404 Not Found |