Skip to content
providerkit
GitHub

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 Parameter Default type
F extends AttachmentFile File
Parameter Type
file F
options { onProgress: (fraction) => void; signal: AbortSignal; }
options.onProgress (fraction) => void
options.signal AbortSignal

Promise<AttachmentRef>