

Every state


default


focus


tree


uploading


skipped


done


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "folder" | Id of the folder input; related ids are built from it. |
| name | string | "folder" | Form field name of the folder input. |
| label | string | "Project folder" | The visible label above the pickers. |
| accept | string | "image/*,.pdf" | Accepted types, as the file picker takes them. Files outside it are skipped. |
| acceptLabel | string | "images and PDFs" | The accepted types in words, for the hint and skip reasons. |
| maxSize | number | 26214400 | Largest file in bytes. Larger files are skipped. |
| disabled | boolean | – | Disables the pickers and every action. |
| defaultFiles | FileUploadFolderFile[] | – | Files at the start: path (relative), size, status (ready, uploading, done, error, skipped), progress, reason. |
| defaultCollapsed | string[] | – | Folder paths that start collapsed. Folders are open down to the second level otherwise. |
| upload | FileUploadFolderUpload | – | Your upload call (file, { onProgress, signal }), run for four files at a time. The default is a local simulation; a name containing "fail" fails. |
| onFilesChange | (files: FileUploadFolderFile[]) => void | – | Called when files are chosen or cleared. |
| className | string | – | Extra classes on the wrapper. |
More file uploads
All 12file-upload-09 is in UI ProGet UI Pro, €199


