Interface AsukaUploadSelectHandlerContext

Context passed to a custom media picker.

interface AsukaUploadSelectHandlerContext {
    accept?: string;
    config: AsukaUploadModuleConfig;
    kind?: string;
    mode?: string;
    multiple?: boolean;
    source?: string;
}

Hierarchy (view full)

Properties

accept?: string

Accepted MIME/extensions requested by the current UI, for example image/*.

Effective upload config after merging boot config and one-off overrides.

kind?: string

Upload UI kind, for example canvas-upload or media-input.

mode?: string

Media input mode when the upload comes from an input field.

multiple?: boolean

Whether the current upload field accepts several files/media items.

source?: string

Upload caller, for example canvas, remote-image, or media-input.