accept | Acceptable file types can be specified with the accept attribute, which takes a comma-separated list of allowed file extensions or MIME types.accept="image/png, image/jpeg" accept=".png, .jpg, .jpeg, .pdf" |
multiple | The multiple attribute allows the user to specify multiple files at the same time in the file upload field.multiple multiple="true" |
max-files | Maximum number of files.max-files="3" |
max-size | Maximum file size, the value is specified in bytes.max-size="5000" |
preview | Allows you to specify your own container for displaying file previews through a selector or a group of selectors.preview=".custom-preview" preview="#custom-preview" preview=".custom-preview.custom-wrapper" |
dropzone | The dropzone attribute allows the user to drag files to the drop zone.dropzone dropzone="true" |
upload | Uploading files. parameters: value value: |
remove | Removing a file by index. parameters: index index: |
clear | Cleans up all files. |
change | Triggered each time file/files are selected. Delivers the array of files. value: event.detail {files: |
error | Triggered each time an error occurs while selecting a file / files. Delivers file and error type. value: event.detail {type: |