Interface: FetchUploaderOptions
Options for fetchUploader().
Properties
| Property | Type | Description |
|---|---|---|
field? | string | Form field name for the file. Default "file". |
headers? | Record<string, string> | Extra headers, e.g. a CSRF token. |
parse? | (json) => UploadResult | Read the URL from the JSON response. Default: json.url. |
url | string | Endpoint that receives a multipart POST. |
withCredentials? | boolean | Send cookies to another origin. Default false. |