IResumableUpload.CancelUpload Method 

IT Hit WebDAV for .NET

In this method implementation you can delete partially uploaded file.

[Visual Basic]
Function CancelUpload() As WebDAVResponse
[C#]
WebDAVResponse CancelUpload();

Return Value

Instance of WebDAVResponse representing operation status.

Remarks

Often during long-continued upload you will keep the old resource content to be returned by GET requests and store the new file content in a temporary file (or temporary field in database, etc). To delete this partially uploaded content client can submit CANCELUPLOAD command, the Engine will call this method in this case.

If the item was automatically checked-out by the Engine when upload started it will be automatically checked-in by the Engine after this call.

Example

Request:

CANCELUPLOAD /LargeFile.doc HTTP/1.1
Host: http://server:8580/

Response:
HTTP/1.1 200 OK

See Also

IResumableUpload Interface | ITHit.WebDAV.Server.ResumableUpload Namespace