AttachmentOptions
Defined in: react/src/attachments.ts:33
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
F extends AttachmentFile |
File |
Properties
Section titled “Properties”canRetry?
Section titled “canRetry?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
error |
unknown |
file |
F |
Returns
Section titled “Returns”boolean
error?
Section titled “error?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
error |
unknown |
file |
F |
Returns
Section titled “Returns”rules?
Section titled “rules?”optional rules?: AttachmentRules;Defined in: react/src/attachments.ts:35
upload
Section titled “upload”upload: AttachmentUploader<F>;Defined in: react/src/attachments.ts:34