(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

File Upload

Overview

File Upload Overview

Specs

Tokens

Token Description
displayName Display name in structure panel
labelTranslations Button text with i18n
disabled Disable upload interaction
hidePreview Hide file thumbnails/previews
buttonSize Button size: medium/large/extra_large
buttonType Button style: primary/secondary/ghost
hidden Keep in form but not visible
saveInLocalStorage Persist files in local storage
defaultValue Initial file data on reset
readonly Show files but block changes
paddingClass Spacing via CSS classes
dataField Field name in submitted form data
multiple Allow selecting multiple files
accept Restrict accepted file types
controlsRequestType Send data via BODY/HEADER/PATH
authorizationDisable Policy set to disable by permission
visibilityPolicySetId Policy set controlling visibility
events Configurable component events
ON_VALUE_CHANGE (Events) Fires when files added/removed
ON_INIT_BASED_ON_USER_VIEW (Events) Fires on init in user view mode
ON_INIT (Events) Fires on component initialization
ON_DESTROY (Events) Fires on component removal
dataTestId Testing hook identifier
enableAsHotspot Enable guided tour hotspot
guidedTourHotSpotTitle Hotspot title (i18n)
guidedTourHotSpotDescription Hotspot description (i18n)

Structure

Labled File Upload for clarity

(Configured in General Properties)

(Configured in Non-Visual Properties)

Example configurations in Non-Visual Properties

(Configured in Visual Properties)

Styling

(Configured in Visual Properties)

File Upload style options

Actions & Variants

(Configured in Visual Properties)

(Configured in Non-Visual Properties)

(Configured in Events)

Authorization

(Configured in Authorization)

Tests

(Configured in Testing Hooks)

Links

Guidelines

Usage

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t
Restrict selection with precise accept values to prevent unsupported files. Allow any file type and rely on error handling later.
Enable multiple only when users truly need to attach several files. Always allow multiple files even for single-document tasks.
Use readonly to show existing uploads without edits. Simulate read-only by disabling and hiding files.
Set buttonSize/buttonType to reflect action priority. Depend on default styling for critical uploads.
Hide for restricted roles via visibilityPolicySetId. Show the control and rely solely on server errors to block access.
Persist selections with saveInLocalStorage for long forms. Force users to reselect files after reloads when progress should persist.
Use ON_VALUE_CHANGE to trigger validation or enable-submit logic. Wait until final submit to detect missing/invalid files.

Accessibility