

Every state


default


focus


uploading


paused


error


done


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "large-file" | Id of the file input; related ids are built from it. |
| name | string | "large-file" | Form field name of the file input. |
| label | string | "Source video" | The visible label above the card. |
| chooseLabel | string | "Choose file" | Text on the choose button. |
| accept | string | "video/*,.zip,.tar,.gz,.7z" | Accepted types, as the file picker takes them. |
| acceptLabel | string | "Video or archive" | The accepted types in words, for the hint and rejection messages. |
| maxSize | number | 5368709120 | Largest file in bytes. |
| disabled | boolean | – | Disables the choose button and every action. |
| defaultFile | FileUploadLargeFile | – | The file at the start: name, size, status (uploading, paused, error, done), transferred, speed, error. |
| upload | FileUploadLargeUpload | – | Your chunked upload call (file, { onProgress(bytesSent), signal, offset }). Send from offset; stop when signal aborts. The default is a local simulation; a name containing "fail" fails once. |
| onFileChange | (file: FileUploadLargeFile | null) => void | – | Called when a file is chosen, and when it is cancelled or removed. |
| className | string | – | Extra classes on the wrapper. |
More file uploads
All 12file-upload-11 is in UI ProGet UI Pro, €199

