FileUploadEvents
No description provided.
FileUploadEvents
type FileUploadEvents =
| { type: 'ADD'; file: File; id: string; bucketId: string; name: string }
| ({
type: 'UPLOAD'
file: File
id: string
name: string
bucketId: string
} & FileUploadConfig)
| {
type: 'UPLOAD_PROGRESS'
progress: number
loaded: number
additions: number
}
| { type: 'UPLOAD_DONE'; id: string; bucketId: string }
| { type: 'UPLOAD_ERROR'; error: StorageErrorPayload }
| { type: 'CANCEL' }
| { type: 'DESTROY' }