Use Multiple File Upload
A React hook for handling multiple file uploads with progress tracking and cancellation
Installation
Usage
For a complete implementation example, check out the Multiple Image Upload component.
Reference
Options
Prop | Type | Default |
---|---|---|
onSuccess | (urls: string[]) => void | - |
onError | (error: string) => void | - |
Return Values
Prop | Type | Default |
---|---|---|
uploadMultipleFiles | (files: FileToUpload[]) => Promise<void> | - |
uploadProgress | UploadProgress[] | - |
uploadResults | UploadResult[] | - |
isUploading | boolean | - |
error | string | null | - |
cancelAllUploads | () => void | - |
resetUploads | () => void | - |
Edit on GitHub
Last updated on