File Upload component
You can upload files using the file upload component. The component supports files up to 1GB in size.
Overview
Add a file upload component to a page to allow your flow users to upload files in a browser.
-
When setting up a file upload component, you must specify the connector and resource path in the Data Source settings:
-
Select the connector to use to upload files. Only a connector that supports file uploading can be used with this component (for example, if the Files checkbox is selected on the connector details page).
-
Enter the resource path if one is required by the connector. This may be left blank for some connector. For example, this might be the same as the resource path from the Flow Services Server File Resource configuration.
-
-
Once you have configured the Data Source settings, select the object value that the file upload data is saved into. If creating a new value, the '$File' type of value is automatically selected, but this may need to be changed to a custom type if required by the connector.
-
To learn more about using the file upload component with Integration, refer to Using Flow Service component File Resources with Flow.
General settings
Configure the general settings for the component.
| Setting | Description |
|---|---|
| Name | Enter a name for the component. |
| Label | Enter a label for the file upload component. The label is displayed above the component by default. Do not enter a label if you do not require this text to be shown. |
| Editable | Specify if the user can use and interact with the component. • Select the checkbox to allow a user to use the component. • De-select the checkbox to prevent a user from being able to interact with the component. |
| Multi-select | Specify if the component allows a user to upload multiple files simultaneously. • Select the checkbox to enable a user to upload multiple files into the file upload component simultaneously. • De-select the checkbox to prevent a user from uploading multiple files; only one file at a time can be upload using the component. |
| Begin uploading when a file is selected | Begin uploading when a file is selected—Specify whether you want to begin uploading a file when it is selected in Runtime. • Select the checkbox to allow a user to begin the file upload on file selection. • De-select the checkbox if you do not want to begin the file upload on file selection. |
| Placeholder text | Enter a short hint to display in the field, such as an example of the expected value or format. |
| Help information about this component | Display help text directly below the component, for example to provide further information on how to use the component. |
Data source
Choose the data source for the component.
The Connector to load the Files from: Select the connector to use for the file upload component. Only connectors that support file uploading can be used with this component (for example, if the Files checkbox is selected on the connector details page). You will need to have installed the relevant connector into your flow for it to be available in the drop-down menu.
Resource path: Enter the file resource path if one is required by the connector. This may be left blank if it is not required by the connector.
For example, if using the file upload component with , this is the same as the resource path from the Flow Services Server File Resource configuration.
State
Select the value that you wish to save the file upload data into.
- Save the component state into: Click Select or create a new value to select the object value that the file upload data is saved into. If creating a new value, the '$File' type of value is automatically selected, but this may need to be changed to a custom type if required by the connector.
Validation
Add client-side page validation to the component. You cannot add validation if you are saving state data into a boolean or object value.
- Click Add Validation.
- Select the validation Type.
- Enter a valid Value for the validation type.
- Enter a feedback Message to show to the user if the validation criteria is not met.
- Click Update to add the validation item.
| Setting | Description |
|---|---|
| Message | Enter a message to show to the user if the validation criteria is not met. |
| Value | Enter the validation criteria. • Minimum number: Enter a minimum number or character limit for the component. • Maximum number: Enter a maximum number or character limit for the component. • Regular expression pattern: Enter a valid Regular Expression (Regex) to validate the component. |
| Type | Select the type of validation to apply to the component. • Minimum number: A user must enter more than this value into the field. • Maximum number: A user is unable to enter more than this value into the field. • Regular expression pattern: Apply Regular Expression (Regex) validation to the component. |
| Required | Specify if the component requires user selection before the next step in the flow can be navigated to. For example, a user must use the file upload component before they are allowed to progress in the flow. • Switch on the toggle to set the component as requiring selection from a user before they can progress in the flow, for example to the next page. • Switch off the toggle to allow a user to progress in the flow, even if they have not used the component, for example if the field is optional. |
Styles
Apply additional CSS styling to the component.
- Enter space-delimited CSS classes/selectors into the CSS Classes field.
When you run the flow, these classes are appended to the main component class.