AttachmentUploader
type AttachmentUploader<F> = (file, options) => Promise<AttachmentRef>;Defined in: react/src/attachments.ts:28
F is the file type the app picks: a web File by default, or its picker’s result.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
F extends AttachmentFile |
File |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
file |
F |
options |
{ onProgress: (fraction) => void; signal: AbortSignal; } |
options.onProgress |
(fraction) => void |
options.signal |
AbortSignal |
Returns
Section titled “Returns”Promise<AttachmentRef>