weasel API - v0.8.0
    Preparing search index...

    Interface OpenFilePickerOptions

    openFilePicker — tiny DOM helper opening the OS file dialog and resolving the chosen File[] ([] on cancel). Pairs with CanvasExtensionApi.ingest:

    const files = await openFilePicker({ accept: 'image/*', multiple: true });
    canvasRef.current?.ingest(files);

    Must be called from a user-activation context (a click handler) — browsers block programmatic input.click() otherwise.

    interface OpenFilePickerOptions {
        accept?: string;
        multiple?: boolean;
    }
    Index

    Properties

    Properties

    accept?: string

    <input accept> filter, e.g. 'image/*' or '.csv,text/csv'.

    multiple?: boolean

    Allow multi-select. Default false.