Skip to content

Interface: FetchUploaderOptions ​

Options for fetchUploader().

Properties ​

PropertyTypeDescription
field?stringForm field name for the file. Default "file".
headers?Record<string, string>Extra headers, e.g. a CSRF token.
parse?(json) => UploadResultRead the URL from the JSON response. Default: json.url.
urlstringEndpoint that receives a multipart POST.
withCredentials?booleanSend cookies to another origin. Default false.