OptionalautoIn single mode, add the uploaded image immediately.
OptionalcredentialsFetch credentials mode used by the remote upload request.
OptionalendpointRemote upload endpoint used by the remote strategy.
OptionalfieldMultipart form field name used for the uploaded file. Defaults to file.
OptionalhandlerOptional custom upload handler.
When provided, the handler is used before endpoint for the remote strategy
and can return either a URL string or an object containing url, dataUrl,
src, or value. This is useful for WordPress/Symfony/custom backends.
OptionalheadersOptional request headers sent with the remote upload request.
OptionalmapMaps the remote upload response to a final image URL.
Example: (json) => json.url
OptionalmethodHTTP method used when endpoint is provided. Defaults to POST.
OptionalmultipleAllow selecting multiple files in the upload dropzone.
OptionalpickerOptional media picker mode.
native: keep the browser file input.Host integrations such as WordPress media library should use selectHandler.
AsukaDesigner awaits the returned promise, normalizes its result, registers the
upload asset, then applies it to the right target automatically.
OptionalpickerOptional button label forwarded to host-controlled pickers through selectHandler context.
OptionalpickerOptional title forwarded to host-controlled pickers through selectHandler context.
OptionalselectOptional host-controlled media picker. It may return File objects, URL strings, media objects, arrays, or { items/data/result } containers.
OptionalstrategyFile-to-image strategy used when a file is added to the canvas.
objectUrl: create a temporary local blob URL and add it immediately.base64: convert the file to a data URL before adding it.remote: upload the file to an HTTP endpoint, then add the returned URL.Defaults to base64 when neither a strategy nor a remote target is configured.
Upload module boot-time configuration.