The File Upload component allows users to upload files to the Gateway or other locations from a Perspective session using a script action on the onFileReceived component event. For an example, see Download and Upload Files page.
The component has different appearances based on its width. When initially dragged onto your View, a Browse button will be visible and paired with "Drag files here" text. At smaller widths, the component defaults to a simple cloud icon and no text. This icon can be changed using the fileUploadIcon property settings.
The maximum number of concurrent (simultaneous) uploads to allow. Default is 5.
|supportedFileTypes||An array of string values, indicating what file types are allowed to be uploaded. Example values are "pdf" or "txt".||array|
|fileSizeLimit||Specifies the maximum size of each uploaded file, in megabytes (MB). Default is 10 MB.||value: integer|
Determines the icon used when the File Upload component is small.
Click here to see fileUploadIcon properties
See the Perspective - File Upload Scripting page for the full list of scripting functions available for this component.