Skip to main content

Upload API

Properties
NameTypeDefaultDescription
namestringThe name attribute of the file input.
placeholderstringThe placeholder text for the text input.
buttonstringChoose FileLabel for the 'Browse local files' button.
mediadbstringFrom your Media DatabaseAdds a Media Database dropdown with the given label.
browsestringChoose FileLabel for the 'Browse local files' button when mediadb is set.
invalidbooleanfalseDefines the invalid state of the input.
disabledbooleanfalseDefines the disabled state of the input.
Events
EventDescriptionReturns
updateFires when the selected file changes.{ detail: { files: [file] } }