OptionalacceptAccept specific file types (e.g., "image/*", ".pdf,.doc")
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionalclassCustom class
OptionaldisabledDisable the upload area
OptionalerrorValidation error message
OptionalhelperHelper text
Optionali18nInternationalization
OptionalkeyA key to optionally associate with this element.
OptionallabelCustom label text
OptionalmaxMaximum number of files (for multiple uploads)
OptionalmaxMaximum file size in bytes
OptionalmultipleAllow multiple file selection
OptionalonCallback when files are removed
OptionalonCallback when files are selected/dropped
OptionalonCallback for upload progress (if implementing upload)
OptionalshowShow file preview for images
OptionalonbeforeremoveThe onbeforeremove hook is called before a DOM element is detached from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes.
OptionalonbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
OptionaloncreateThe oncreate hook is called after a DOM element is created and attached to the document.
OptionaloninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
OptionalonremoveThe onremove hook is called before a DOM element is removed from the document.
OptionalonupdateThe onupdate hook is called after a DOM element is updated, while attached to the document.
Any other virtual element properties, including attributes and event handlers.