Setu-TS
    Preparing search index...

    Interface UploadedFile

    A single parsed file from a multipart upload.

    0.1.0

    interface UploadedFile {
        data: Uint8Array;
        filename: string;
        mimeType: string;
        name: string;
        size: number;
    }
    Index
    data: Uint8Array

    File bytes.

    filename: string

    The client-provided original file name (Content-Disposition filename="…"). Always present: since M94b a part carrying NO filename under the field name is a plain form value, not an upload (an empty filename="" — an empty file input — still is one).

    mimeType: string

    MIME type reported by the client.

    name: string

    The form field name the file was uploaded under (Content-Disposition name="…").

    size: number

    File size in bytes.