Interface: ImageUploadOptions
Options for imageUpload().
Properties
| Property | Type | Description |
|---|---|---|
accept? | readonly string[] | Accepted MIME types. Default PNG, JPEG, GIF, WebP. SVG is left out on purpose: an SVG served from your domain can run scripts. |
label? | string | Accessible name of the progress placeholder. Default "Uploading image". |
maxSize? | number | Largest accepted file in bytes. Default 10 MB. |
onError? | (error) => void | Called for every refused or failed file. The placeholder is already gone. |
upload | UploadFn | Your upload. See fetchUploader() and presignedUploader() for ready-made ones. |