Skip to main content
Feedback

File upload component attributes

warning

The content on this page is outdated and will not receive updates. For the most up-to-date functionality, refer to Setting up and managing flows.

You can customize file upload components by applying attributes.

Default legacy player runtime

You can apply the following attributes when running flows with the default legacy player.

KeyValueDescription
classes
Page builder: Space delimited css classes
stringApply CSS directly to the component. The string value can consist of multiple entries to build up a CSS class selector, separated by a space character. See CSS reference.

For example, if a custom ".mw-bs .myChosenClassName" style is added to a player (either directly or through a linked stylesheet), this custom style can then be applied to the component using the value 'myChosenClassName'.
isAutoUploadbooleanIndicates if the component should auto-upload files when they are dropped onto the component by the user, or require a user to click an Upload button.

true: The file upload component will automatically begin uploading a file once it is dropped onto the component. The Upload button and progress bar are not displayed.

false: The file upload component will only begin uploading a file once the user clicks the Upload button. A progress bar displays the file upload progress.

Metadata example

This metadata example uses the default legacy player runtime.

"attributes": {
"isAutoUpload": true
}
On this Page