IResumableUpload.CancelUpload Method (String)

IT Hit WebDAV for .NET

Cancels upload of the file.

[Visual Basic]
Sub CancelUpload( _
   ByVal lockToken As String _
)
[C#]
void CancelUpload(
   string lockToken
);

Parameters

lockToken
Lock token for this resource.

Remarks

This method submits CANCELUPLOAD request to a file. The server should cancel the file upload and remove temporary files if any.

If your server is based on IT Hit WebDAV Server Engine and the item was automatically checked-out by server Engine when upload started it will be automatically checked-in by server Engine after this call.

Exceptions

Exception TypeCondition
NotFoundExceptionThis resource doesn't exist on the server.
LockedExceptionResource is locked and valid lock token was not specified.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.

See Also

IResumableUpload Interface | ITHit.WebDAV.Client Namespace | IResumableUpload.CancelUpload Overload List