kw.FileList Class
Provides an list of files that have been selected for upload.
Members
get_Id() – string
Gets the id of the current control.
set_ValidExtensions(value)
Sets the list of valid extensions to allow.
- value (string[]) –
An array of the valid extensions to allow, or null to allow all extensions.
set_InvalidExtensionMessage(value)
Sets the message to display next to each file with an invalid extension.
- value (string[]) –
The message to display next to each file with an invalid extension.
kw.FileList(id, fileSelectorId, uploadConnectorId, templateId, validExtensions, invalidExtensionMessage)
Initializes a new instance of the FileList class.
Parameters
- id (string) –
The id of the control.
- fileSelectorId (string) –
The id of the FileSelector that will populate this list.
- uploadConnectorId (string) –
The id of the UploadConnector that will be uploading from this FileList, or null. Used to hook the OnBeforeUpload event for validation.
- templateId (string) –
The id of the html template element for each item in the list.
- validExtensions (string[]) –
An array of the valid extensions to allow, or null to allow all extensions.
- invalidExtensionMessage (string) –
A message to display next to each file with an invalid extension.
Obsolescence Note
The remove_File() and clear() methods have been made obsolete in version 5.4.1. To remove a file from or clear a FileList, remove the file from or clear the associated FileSelector.
The get_Files() method has been made obsolete in version 5.5. Use the get_Files() method on the associated FileSelector instead.
The OnFileAdded and OnFileRemoved events have been made obsolete in version 5.5. Use the events on the associated FileSelector instead.
|