SlickUpload Documentation
- Installation
- Configuration
- Quick Start Guide
- How To
- Concepts
- Troubleshooting
- FAQ/Known Issues
- Upgrading
- Client Reference
-
Server Reference
- Class reference syntax
- Installing the license
-
SlickUpload Namespaces
- Krystalware.SlickUpload
- Krystalware.SlickUpload.Configuration
- Krystalware.SlickUpload.Storage
- Krystalware.SlickUpload.Storage.Streams
- Krystalware.SlickUpload.Web
- Krystalware.SlickUpload.Web.Controls
- Krystalware.SlickUpload.Web.Controls.Design
- Krystalware.SlickUpload.Web.Handlers
- Krystalware.SlickUpload.Web.Mvc
- Krystalware.SlickUpload.Web.SessionStorage
kw.FileSelector Class
Provides an interface for users to select files to upload.
Members
- kw.FileSelector (Object)
-
Constructs and returns the FileSelector represented by the specified settings object.
Setting Attributes
- dropZone (element) – The DOM element to use for the drop zone of this FileSelector. This can be either the actual DOM element object, or its id. Default value: the FileSelector element
- element
(element)
– The DOM element to use for this FileSelector. If the
idattribute isn't specified, it will be set to the id of this DOM element. - folderElement (element) – The DOM element to use for the folder selector of this FileSelector. This can be either the actual DOM element object, or its id.
- id
(String) – The unique id for this
FileSelector. If the
elementattribute isn't specified, this must match a DOM id. - maxFiles (Number) – The maximum number of files that can be selected. Default value: 100
- maxFileSize (Number) – The maximum size of an individual file, in kilobytes. Default value: 2097140
- onFileAdded (Function) – A function to connect to the FileAdded event.
- onFileAdding (Function) – A function to connect to the FileAdding event.
- onFileRemoved (Function) – A function to connect to the FileRemoved event.
- onFileValidated (Function) – A function to connect to the FileValidated event.
- isSkinned (Boolean) – A boolean that specifies whether the FileSelector will display in skinned mode if the browser supports it.
- uploadConnector (kw.UploadConnector) – The UploadConnector to use to upload selected files. This can be either the actual UploadConnector object, or the String id that the UploadConnector was created with.
- unskinnedElement (element) – The DOM element to use for the unskinned mode of this FileSelector. This can be either the actual DOM element object, or its id.
- unsupportedElement (element) – The DOM element to use for the unsupported mode of this FileSelector. This can be either the actual DOM element object, or its id.
- validExtensions (Array) – A list of valid file extensions, or a comma separated string. Default value: null (all extensions are valid)
- clear()
-
Clears all currently selected files.
- get_Files()
-
Returns the list of currently selected files, typed as kw.File.
Return Value
- remove_File (kw.File)
-
Removes the specified File.
Parameters
- file (kw.File) – The File to remove.