Class: ResumableUpload

ResumableUpload Class

Namespace

ITHit.WebDAV.Client
Provides support partial uploads and resuming broken uploads.

Methods

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

CancelUploadAsync
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.

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

GetBytesUploadedAsync
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)

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

GetBytesUploadedAsyncCallback(oResult)

GetBytesUploadedAsyncCallback
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.