UseUploadResult
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:130
Properties
Section titled “Properties”start: (
file,input?,options?) =>UploadHandle<File> |null
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:132
Starts an upload (client.upload); null while there is no client.
Parameters
Section titled “Parameters”Blob
input?
Section titled “input?”options?
Section titled “options?”Returns
Section titled “Returns”UploadHandle<File> | null
resume
Section titled “resume”resume: (
snapshot,file) =>UploadHandle<File> |null
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:138
Continues an upload from serialize() (client.resumeUpload); throws UploadFileMismatchError on another file.
Parameters
Section titled “Parameters”snapshot
Section titled “snapshot”Blob
Returns
Section titled “Returns”UploadHandle<File> | null
uploads
Section titled “uploads”uploads: readonly
UploadView[]
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:140
The client’s uploads in progress (and failed ones), as immutable views; re-renders on every progress event.