The file upload widget is a labelled input widget that allows users to upload files and bind the uploaded values to blob unit variables or object instance attributes.
Specifying a file to upload can be done by browsing the file system on your pc. This behaviour is triggered by clicking the folder icon on the top right corner of the widget.
In addition, a file can be dragged and dropped in the widget area labelled as "Drag & drop here".
When uploading a file, the progress is indicated by a progress bar.
Once a file has been uploaded the file name will be displayed in the widget.
Files that have been uploaded but not yet submitted can be removed from the widget using the trash can icon on the bottom right corner of the widget.
The title is specified as a key to a lang file entry and is required. Visibility bindings are also supported.
Example
The abbreviated code snippets and screenshot below shows the use of <fileupload/> with a value binding to an object instance attribute.
0 Comments