

Every state


default


focus


uploading


mixed


all-done


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "documents" | Id of the file input; related ids are built from it. |
| name | string | "documents" | Form field name of the file input. |
| label | string | "Documents" | The visible heading above the list. |
| addLabel | string | "Add files" | Text on the add button. |
| accept | string | ".pdf,.doc,.docx,image/png,image/jpeg" | Accepted types, as the file picker takes them. |
| acceptLabel | string | "PDF, Word, PNG or JPG" | The accepted types in words, for the hint and rejection messages. |
| maxSize | number | 26214400 | Largest file in bytes. |
| multiple | boolean | true | Allow several files. |
| disabled | boolean | – | Disables the add button and every action. |
| defaultFiles | FileUploadProgressListFile[] | – | Files already in the list: id, name, size, status (uploading, done, error), progress, error. |
| upload | FileUploadProgressListUpload | – | Your upload call (file, { onProgress, signal }). The default is a local simulation; a name containing "fail" fails. |
| onFilesChange | (files: FileUploadProgressListFile[]) => void | – | Called when files are added or removed. |
| className | string | – | Extra classes on the wrapper. |
More file uploads
All 12file-upload-08 is in UI ProGet UI Pro, €199


