Class: UploadItemsCreated

UploadItemsCreated Class

Namespace

ITHit.WebDAV.Client.Upload.Events

new ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated(oSender, aItems, fCallback)

UploadItemsCreated
This object is passed to ITHit.WebDAV.Client.Upload.Queue#event:OnUploadItemsCreated and contains list of items selected by user for upload. You can validate these items as well as specify if item should be overwritten. To continue upload the UploadItemsCreated.Upload() function with the list of items to be uploaded should be called.
Name Type Description
oSender ITHit.WebDAV.Client.Upload.UploadItem
aItems Array.<ITHit.WebDAV.Client.Upload.UploadItem>
fCallback ITHit.WebDAV.Client.Upload.Events.UploadItemsCreated~ResultCallback

Extends

Members

Added items.

Name :string

Name
Event name.

Sender :Object

Sender
Event source.

Methods

inherited GetIsHandled() → {boolean}

GetIsHandled
This methods return value that indicates that event already processed.
Returns:
boolean - True if event was processed, false otherwise.

Upload(aItems)

Upload
Continues items upload. Pass a list of items to upload. If any items should not upload do not include them in this list. If any items in the upload list should be overwritten call ITHit.WebDAV.Client.Upload.UploadItem#SetOverwrite(true)) on each item.
Name Type Description
aItems Array.<ITHit.WebDAV.Client.Upload.UploadItem> The list of items to be uploaded. Items not listed here will be skipped.