SlickUpload

kw.SlickUpload Class

Composes the kw.FileSelector, kw.FileList, kw.UploadProgressDisplay, and kw.UploadConnector classes into one easy to use component.

Members

kw.SlickUpload (Object)
Constructs and returns the kw.SlickUpload represented by the specified settings object.

Setting Attributes

  • element (element) – The DOM element to use as a container for this FileList. If the id attribute isn't specified, it will be set to the id of this DOM element.
  • id (String) – The unique id for this FileList. If the element attribute isn't specified, this must match a DOM id.
  • fileSelector (kw.FileSelector) – The FileSelector that selects files for this SlickUpload component. This can be either the actual FileSelector object, or the String id that the FileSelector was created with.
  • fileList (kw.FileList) – The FileList that displays selected files for this SlickUpload component. This can be either the actual FileList object, or the String id that the FileList was created with.
  • uploadProgressDisplay (kw.UploadProgressDisplay) – The UploadProgressDisplay that displays progress for this SlickUpload component. This can be either the actual UploadProgressDisplay object, or the String id that the UploadProgressDisplay was created with.
  • uploadConnector (kw.UploadConnector) – The UploadConnector that manages uploads for this SlickUpload component. This can be either the actual UploadConnector object, or the String id that the UploadConnector was created with.
cancel()
Cancels the upload currently in process.
complete()
Completes the upload currently in process.
start()
Starts the upload process.
clear()
Clears all currently selected files.
get_Files()
Returns the list of currently selected files, typed as kw.File.

Return Value

  • ArrayThe list of currently selected files, typed as kw.File..
remove_File (kw.File)
Removes the specified File.

Parameters

  • file (kw.File) – The File to remove.