UseAttachmentUpload
@forge/monorepo / frontend/src / UseAttachmentUpload
Type Alias: UseAttachmentUpload
UseAttachmentUpload = () =>
object
Defined in: frontend/src/hooks/index.ts:99
Returns
object
error
readonlyerror:PlatformError|undefined
progress
readonlyprogress:number
upload
readonlyupload: (file,filename) =>Promise<{fileId:string; }>
Parameters
file
Blob
filename
string
Returns
Promise<{ fileId: string; }>