File upload input
Eigenschaften
| Name | Type | Default Value | Description |
|---|---|---|---|
id | string | undefined | Id of input element |
disabled | boolean | undefined | undefined | Is this element disabled? |
label | string | undefined | undefined | Label for this element if no file is selected. "noFile" slot will be preferred if both are set. |
required | boolean | false | Is this element required? |
multiple | boolean | undefined | Multiple files allowed? |
files | File[] | undefined | Selected files (if multiple is true) |
accept | string | undefined | undefined | The accept attribute takes as its value a comma-separated list of one or more file types, or unique file type specifiers, describing which file types to allow. (e.g. ".xls,.xlsx") |
file | File | undefined | undefined | Selected file (if multiple is false) |
style | string | undefined | Additional css styles |
Beispiele
File upload input
File upload custom text
please choose some file bro
Disabled File upload input
Multiple File upload
Preselected files
some.txt
someMore.abc