Import Files
Qubes 5.6 Used to upload one or more files.
Properties
| Property | Description |
| AcceptFileTypes | List of authorized file extensions (all extensions are accepted by default). |
| Enabled | Boolean indicating whether or not the component is enabled. |
| Hint | Specifies the user hint string that will appear in the component's interactive help bubble. |
| MaxFileSize | Maximum file size allowed per file, in MB. Empty or 0 is no size limit, defaults to empty (Qubes 7.5). |
| MaxNumberOfFiles | Maximum number of files allowed (5 by default). |
| MaxSize | Maximum size allowed for all files combined, in MB (5 MB by default). |
| TabIndex | Integer indicating the component's tab order (Qubes 5.6). |
| ValueInitial | Can be inialized with the identifier of a previously uploaded file. |
| Visible | Boolean indicating whether or not the component will be visible. |
Value
Returns a list of unique identifiers for the downloaded files.
Remarks
If you only want to allow images to be downloaded in web format, you can apply the following, for example:
AcceptFileTypes = List("*.jpg", "*.gif", "*.png")
which will only allow files with a .jpg, .gif or .png extension.
To retrieve information about the downloaded files, see ImportedFileProperty.
Note that the unique identifiers are generated with strong random properties and are not guessable, however knowing the identifier provides access to the file. If further data restrictions are requires, a script should be used to move the data in another location (see XForms.FileUpload).