K2 out of the box SmartForms provide a one-at-a-time file upload capability. This can be tedious for users who need to upload many files. With drag and drop functionality, the Multiple File Upload Control makes it easy for users to upload many files in one go with a minimum of mouse clicks.
Properties
- Name: The name of the control as used in SmartForm Rules
- Watermark: Embedded text seen by the user
- Width: Percentage of the control space used by the control
- Visible: Checkbox (show or hide control)
- File Limit: Optional number of files
- Allowed Types: Optional list of allowed file types
- SmartObject
- Machine Key (provided by the control)
- License Key (provided by Bytezoom)
Methods
- Upload
- Parameter: Group Key
Events
- When the control is Changed
Using the control
The control includes instructions and an installer that takes just minutes to run. Once installed, a license key obtained from the Bytezoom web site is configured just once on each K2 Server as shown below.
Enter the License Key
Set Control Properties
- Name: The name of the control as used in SmartForm Rules
- Watermark: Embedded text seen by the user
- Width: Percentage of the control space used by the control
- Visible: Checkbox (show or hide control)
- File Limit: Optional number of files
- Allowed Types: Optional list of allowed file types
- SmartObject and Mappings: See below:
Add Rules for Uploaded Files to a SmartObject
- The control’s Change Event (not shown) can be used to eliminate clicking a button to save the files.
- The control’s Upload method has a group key parameter (see below) that allows grouping uploaded files by a common property.
- Execution Result can be used for success message if desired.
That’s all there is to it