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

Hierarchy

Index

Properties

arrayBuffer

arrayBuffer: function
returns

A promise for an array buffer with the file data.

Type declaration

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

lastModified

lastModified: number

UNIX timestamp with the last time the file was modified.

name

name: string

The name of the file.

size

size: number

The size in bytes of the file's data.

text

text: function
returns

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

Type declaration

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

type

type: string

The content type of the file.