Upload API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
name | string | — | The name attribute of the file input. |
placeholder | string | — | The placeholder text for the text input. |
button | string | Choose File | Label for the 'Browse local files' button. |
mediadb | string | From your Media Database | Adds a Media Database dropdown with the given label. |
browse | string | Choose File | Label for the 'Browse local files' button when mediadb is set. |
invalid | boolean | false | Defines the invalid state of the input. |
disabled | boolean | false | Defines the disabled state of the input. |
Events
| Event | Description | Returns | |
|---|---|---|---|
update | Fires when the selected file changes. | { detail: { files: [file] } } | |