Class: UploaderSession

UploaderSession Class

Namespace

ITHit.WebDAV.Client.Upload

Extends

Methods

inherited AddListener(sEventName, fCallback, oContext)

AddListener
Name Type Description
sEventName string
fCallback function
oContext object optional

inherited CreateFolderAsync(sPath, aProperties, fCallback)

CreateFolderAsync
Creates folder corresponding to path.
Name Type Description
sPath string Path to the resource.
aProperties Array.<ITHit.WebDAV.Client.PropertyName> Additional properties requested from server. Default is empty array.
fCallback ITHit.WebDAV.Client.WebDavSession~CreateFolderAsyncCallback Function to call when operation is completed.

inherited OpenFileAsync(sPath, aProperties, fCallback) → {ITHit.WebDAV.Client.Request}

OpenFileAsync
Load File object corresponding to path.
Name Type Description
sPath string Path to the file.
aProperties Array.<ITHit.WebDAV.Client.PropertyName> Additional properties requested from server. Default is empty array.
fCallback ITHit.WebDAV.Client.WebDavSession~OpenFileAsyncCallback Function to call when operation is completed.
Returns:
ITHit.WebDAV.Client.Request Request object.

inherited OpenFolderAsync(sPath, aProperties, fCallback)

OpenFolderAsync
Returns Folder object corresponding to path.
Name Type Description
sPath string Path to the folder.
aProperties Array.<ITHit.WebDAV.Client.PropertyName> Additional properties requested from server. Default is empty array.
fCallback ITHit.WebDAV.Client.WebDavSession~OpenFolderAsyncCallback Function to call when operation is completed.
Examples

inherited OpenItemAsync(sPath, aProperties, fCallback)

OpenItemAsync
Returns HierarchyItem object corresponding to path.
Name Type Description
sPath string Path to the resource.
aProperties Array.<ITHit.WebDAV.Client.PropertyName> Additional properties requested from server. Default is empty array.
fCallback ITHit.WebDAV.Client.WebDavSession~OpenItemAsyncCallback Function to call when operation is completed.

inherited RemoveListener(sEventName, fCallback, oContext)

RemoveListener
Name Type Description
sEventName string
fCallback function
oContext object optional

Events

inherited OnBeforeRequestSend

OnBeforeRequestSend
The OnBeforeRequestSend event is fired before request is being submitted to server and provides all information that is used when creating the request such as URL, HTTP verb, headers and request body.
Properties:
Name Type Description
Method string Request method
Href string Request absolute path
Headers object Key-value object with headers
Body string Request Body
Examples

inherited OnResponse

OnResponse
The OnResponse event fires when the data is received from server. In your event handler you can update any data received from server.
Properties:
Name Type Description
Status number Response status code
StatusDescription string Response status description
Headers object Key-value object with headers
Body string Response Body
Examples