Import Files

Qubes 5.6 Used to upload one or more files.

Properties

PropertyDescription
AcceptFileTypesList of authorized file extensions (all extensions are accepted by default).
EnabledBoolean indicating whether or not the component is enabled.
HintSpecifies the user hint string that will appear in the component's interactive help bubble.
MaxFileSizeMaximum file size allowed per file, in MB. Empty or 0 is no size limit, defaults to empty (Qubes 7.5).
MaxNumberOfFilesMaximum number of files allowed (5 by default).
MaxSizeMaximum size allowed for all files combined, in MB (5 MB by default).
TabIndexInteger indicating the component's tab order (Qubes 5.6).
ValueInitialCan be inialized with the identifier of a previously uploaded file.
VisibleBoolean 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).

Classification

Standards