formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface for objects that behave similar to the DOM API File object.

    interface FileLike {
        arrayBuffer: () => Promise<ArrayBuffer>;
        lastModified: number;
        name: string;
        size: number;
        text: () => Promise<string>;
        type: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    arrayBuffer: () => Promise<ArrayBuffer>

    Type declaration

      • (): Promise<ArrayBuffer>
      • Returns Promise<ArrayBuffer>

        A promise for an array buffer with the file data.

    lastModified: number

    UNIX timestamp with the last time the file was modified.

    name: string

    The name of the file.

    size: number

    The size in bytes of the file's data.

    text: () => Promise<string>

    Type declaration

      • (): Promise<string>
      • Returns Promise<string>

        A promise for the text string with the file data. This interprets the file data with the UTF-8 encoding.

    type: string

    The content type of the file.