You can use a DELETE request A DELETE request can be used with the UploadID query argument to cancel an in-progress multipart write. This method enables the Health Processor to delete any completed or in-progress parts. Canceling a multipart write will does not terminate any part uploads still in progress.
Updates — If you are canceling a multipart write that was intended to modify an existing object, the deletion only The deletion deletes the multipart write and leaves the original object intact if canceling a multipart write intended to modify an existing object.
Info |
---|
WarningIf you fail to include theUploadID Swarm attempts to delete the original object if the previously existedexisting in the cluster , Swarm will attempt to delete the original object. You must include the. The verify the multipart write operation is deleted. |
Example
Example of canceling a multipart write:
Code Block |
---|
DELETE /ObjectName?uploadId=UPLOAD_ID HTTP/1.1 |
Success:
When the cancel is completed,Swarm returns a
200 OK
code when the cancel is completed.Failure: Any failure to write one of
the partsthe parts triggers an immediate upload cancellation. The upload is cleaned up and
will beretried as a whole at a later point in time.