Skip to content
providerkit
GitHub

AttachmentOptions

Defined in: react/src/attachments.ts:33

Type Parameter Default type
F extends AttachmentFile File
optional canRetry?: (error, file) => boolean;

Defined in: react/src/attachments.ts:37

Omitted means no retry. Return true only if repeating this failed upload is safe.

Parameter Type
error unknown
file F

boolean


optional error?: (error, file) => DisplayError;

Defined in: react/src/attachments.ts:39

Safe, host-authored words only. The default never exposes a thrown server error.

Parameter Type
error unknown
file F

DisplayError


optional rules?: AttachmentRules;

Defined in: react/src/attachments.ts:35


upload: AttachmentUploader<F>;

Defined in: react/src/attachments.ts:34