FileInput
Beta notice: This page is being built.Edit on GitHub(opens in new tab)
Selects files with explicit upload constraints; uploading remains a Solution operation.
longlink docs component "FileInput"
Example
Properties
| FileInput - Properties |
|---|
label Accessible label for the file input.string |
description Description text displayed between the label and input.string |
name Includes the themed control's value under this form submission name.string |
required Requires a value before native form submission.boolean |
disabled Prevents interaction and excludes the field from submission.boolean |
value Currently selected file(s). Controlled component.File | File[] | null |
onChange Callback fired when files are selected or removed.(value: File | File[] | null) => void |
accept Accepted file types. Uses the HTML accept attribute format (e.g. "image/*", ".pdf,.doc").string |
multiple Allows selecting multiple files.boolean |
maxSize Maximum file size in bytes. Files exceeding this are rejected with an error status.number |
maxFiles Maximum file count when multiple selection is enabled.number |
placeholder Placeholder text shown when no file is selected.string |
mode Compact input or drag-and-drop area."input" | "dropzone" |