Namespace: ITHit.WebDAV.Server.ResumableUpload
Exception | Condition |
---|---|
LockedException | This folder was locked. Client did not provide the lock token. |
NeedPrivilegesException | The user doesn't have enough privileges. |
InsufficientStorageException | Quota limit is reached. |
DavException | In other cases. |
Often during long-continued upload you will keep the old file 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.
CANCELUPLOAD /LargeFile.doc HTTP/1.1 Host: http://server:8580/
HTTP/1.1 200 OK
The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.