File Upload API
API Reference
Properties
| Name | Description | Type | Required | Default value |
|---|---|---|---|---|
| name | File input name attribute | string | ||
| placeholder | Text input placeholder attribute | string | ||
| button | "Browse local files" button label | string | Choose File | |
| mediadb | Add Media Database dropdown | string | From your Media Database | |
| browse | "Browse local files" button label if set mediadb | string | Choose File | |
| invalid | Defines invalid state of the input. | boolean | false | |
| disabled | Defines disabled state of the input. | boolean | false |
Events
| Event | Description | Returns |
|---|---|---|
update |
Fires on upload change and returns the file list | {
detail: {
files: [file]
}
} |