File Upload
Last updated
Last updated
The File wiget is an input widget that allows the app user to upload files from any device.
On a computer screen, the user is automatically directed to the file browser. In the mobile version, this widget also supports a camera feature (similar to the Photo widget).
When empty, the File widget looks like a regular Button, and all of the visual settings are the same as the button's.
The settings specific to uploading files are:
Storage type: Allows choosing between file
and buffer
storage types.
When choosing file
the file is saved into the runtime-files
folder, and the function connected to the widget will show the exact path it is saved in.
When choosing buffer
the document is compressed into a Base64 string, which will be shown in the connected function instead of the file path.
Multi-File Upload:
Check the Allow multi-file upload
box to allow uploading multiple files.
Set a Maximum number of files
to limit the files a user can upload at once.
Thumbnails:
Allow Thumbnails: By default, the file preview shows the file names. When Allow Thumbnails
is checked, the preview will be a thumbnail of the files.
Thumbnail size: Thumbnail size can be customized in this setting.