Documentation - v19.16.0-dev
    Preparing search index...

    Options of FileReader.read.

    interface FileReadOptions {
        headers?: Record<string, string>;
        name: string;
        onDownload?: (loaded: number, total: number) => void;
    }
    Index

    Properties

    headers?: Record<string, string>

    HTTP headers of its download (see FileSource.headers), for fetchFile.

    name: string

    Name of the file (its extension picked the loader), for messages.

    onDownload?: (loaded: number, total: number) => void

    Told the bytes received as the file downloads, and the total (0 when unknown).