interface
UploadOptions
Metadata and locale options accompanying an upload.
Properties
| Property | Type | Description |
|---|---|---|
data | Partial< | The data value. |
filename | string | The filename value. |
image | UploadImageEdit | The image value. |
draft | Drafts extends true ? boolean : never | Create a working draft when true, or publish on create when false. |
revision | never | This method has no optimistic-concurrency transport contract. |
locale | Locale | Mutations target one locale; "all" is read-only. |
fallbackLocale | [Locale] extends [never] ? never : false | | Explicit fallback chain, or false to require an exact locale value. |
signal | AbortSignal | The signal value. |
headers | HeadersInit | | The headers value. |
keepalive | boolean | The keepalive value. |
Full signature
interface UploadOptions<Data, Locale extends string = string, Drafts extends boolean = boolean> {
...
}