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
Global Functions
SlickUpload provides several global functions for retrieving SlickUpload components, registering startup functions, or formatting numbers and validation messages.
Functions
- kw (String)
-
Retrieves the SlickUpload component associated with the specified id, or null if none exists.
Parameters
- id (String) – The id for which to retrieve the associated SlickUpload component.
Return Value
- Object – The SlickUpload component with the specified id, or null if no matching component was found.
- kw (Function)
-
Registers the specified function to be executed when SlickUpload initializes. If SlickUpload has already initialized, the function will be executed immediately.
Parameters
- function (Function) – The function to register.
- kw.defaultFileValidationMessageFormatter (kw.File, kw.FileList)
-
Returns a validation message string for the specified file, or null if no errors exist.
Parameters
- file (kw.File) – The file for which to create a validation message.
- fileList (kw.FileList) – The file list where the validation message will be displayed.
Return Value
- String – The validation message string for the specified file, or null if no errors exist.
- kw.defaultFileSizeFormatter (Number)
-
Formats the specified number of bytes into a human readable string with appropriate size units, such as KB/MB/GB/TB.
Parameters
- bytes (Number) – The number of bytes.
Return Value
- String – A human friendly string with appropriate size units, such as KB/MB/GB/TB.
- kw.defaultPercentFormatter (Number)
-
Formats the specified fractional number into a percent between 0 % and 100 %.
Parameters
- percent (Number) – The fractional percent number.
Return Value
- String – A string percentage between 0 % and 100 %.
- kw.defaultTimeFormatter (Number)
-
Formats the specified number of seconds into a human readable string with appropriate size units, such as hours/minutes/seconds.
Parameters
- seconds (Number) – The number of seconds.
Return Value
- String – A human friendly string with appropriate size units, appropriate size units, such as hours/minutes/seconds.