Class: ResumableUpload

ResumableUpload Class

Namespace

ITHit.WebDAV.Client

Provides support partial uploads and resuming broken uploads.

Methods

CancelUpload(mLockTokens)

Cancels upload of the file.
Name Type Description
mLockTokens string Lock token for this file.
Deprecated
Use asynchronous method instead
Throws:
  • ITHit.WebDAV.Client.Exceptions.NotFoundException This folder doesn't exist on the server.
  • ITHit.WebDAV.Client.Exceptions.LockedException This folder is locked and no or invalid lock token was specified.
  • ITHit.WebDAV.Client.Exceptions.WebDavHttpException Server returned unknown error.
  • ITHit.WebDAV.Client.Exceptions.WebDavException Unexpected error occurred.

CancelUploadAsync(mLockTokens, fCallback){ITHit.WebDAV.Client.Request}

Cancels upload of the file.
Name Type Description
mLockTokens string Lock token for this file.
fCallback ITHit.WebDAV.Client.ResumableUpload~CancelUploadAsyncCallback Function to call when operation is completed.
Returns:
ITHit.WebDAV.Client.Request Request object.

GetBytesUploaded(){number}

Amount of bytes successfully uploaded to server.
Deprecated
Use asynchronous method instead
Throws:
  • ITHit.WebDAV.Client.Exceptions.NotImplementedException Is thrown if server doesn't support resumable upload.
  • ITHit.WebDAV.Client.Exceptions.LockedException This folder is locked and no or invalid lock token was specified.
  • ITHit.WebDAV.Client.Exceptions.WebDavHttpException Server returned unknown error.
  • ITHit.WebDAV.Client.Exceptions.WebDavException Unexpected error occurred.
Returns:
number Number of bytes uploaded to server or -1 if server did not provide info about how much bytes uploaded.

GetBytesUploadedAsync(fCallback){ITHit.WebDAV.Client.Request}

Get amount of bytes successfully uploaded to server.
Name Type Description
fCallback ITHit.WebDAV.Client.ResumableUpload~GetBytesUploadedAsyncCallback Function to call when operation is completed.
Returns:
ITHit.WebDAV.Client.Request Request object.

Type Definitions

CancelUploadAsyncCallback(oResult)

Callback function to be called when folder loaded from server.
Name Type Description
oResult ITHit.WebDAV.Client.AsyncResult Result object

GetBytesUploadedAsyncCallback(oResult)

Callback function to be called when result of bytes uploaded loaded from server.
Name Type Description
oResult ITHit.WebDAV.Client.AsyncResult Result object
Name Type Description
Result number Number of bytes uploaded to server or -1 if server did not provide info about how much bytes uploaded.