Skip to content

Events#

TypeDescription
onChangefunction(optional) Will be called on files changes made by the user. Access the files with { files } (containing each a fileItem).
onFileDeletefunction(optional) Will be called once a file gets deleted by the user. Access the deleted file with { fileItem }. If an async function throws or rejects, the file shows the error message, or the errorDeleteFailed translation when there is no message.
onFileClickfunction(optional) Will be called once a file gets clicked on by the user. Access the clicked file with { fileItem }. When providing this property, the file will be rendered as a button instead of an anchor or plain text.
Suggest an edit
Eufemia · /web/forms/base-fields/Upload/events/ · Version 11.18.1