|
string
|
Required.
The name of the input, which is submitted with the form data.
|
|
string
|
The ID of the input.
Defaults to the value of Name.
|
|
bool
|
If true, file input will be disabled.
|
|
bool
|
If true, a user may select multiple files at the same time.
The exact mechanism to do this differs depending on operating system.
|
|
List<string>
|
One or more element IDs to add to the input aria-describedby attribute,
used to provide additional descriptive information for screenreader users.
|
|
LabelViewModel
|
Required.
The label used by the file upload component.
See options for LabelViewModel
|
|
HintViewModel
|
Can be used to add a hint to the file upload component.
See options for HintViewModel
|
|
ErrorMessageViewModel
|
Can be used to add an error message to the file upload component.
The error message component will not display if ErrorMessage is null.
See options for ErrorMessageViewModel
|
|
FormGroupViewModel
|
Additional options for the form group containing the file upload component.
See options for FormGroupViewModel
|
|
bool
|
Can be used to enable JavaScript enhancements for the component.
|
|
string
|
The text of the button that opens the file picker.
Default is "Choose file".
If Javascript is not true, this option will be ignored.
|
|
string
|
The text informing users they can drop files.
Default is "or drop file".
If Javascript is not true, this option will be ignored.
|
|
PluralisationOptions
|
The text displayed when multiple files have been chosen by the user.
The component will replace the %{count} placeholder with the number of files selected.
Design System pluralisation rules
apply to this macro option.
See options for PluralisationOptions
If Javascript is not true, this option will be ignored.
|
|
string
|
The text displayed when no file has been chosen by the user.
Default is "No file chosen".
If Javascript is not true, this option will be ignored.
|
|
string
|
The text announced by assistive technology when user drags files and enters the drop zone.
Default is "Entered drop zone".
If Javascript is not true, this option will be ignored.
|
|
string
|
The text announced by assistive technology when user drags files and leaves the drop zone without dropping.
Default is "Left drop zone".
If Javascript is not true, this option will be ignored.
|
|
List<string>
|
Classes to add to the file upload component.
|
|
Dictionary<string, string>
|
HTML attributes (for example, data attributes) to add to the file upload component.
|