Interface File
interface File {
lastModified: number;
name: string;
size: number;
type: string;
webkitRelativePath: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
lastModified: number;
name: string;
size: number;
type: string;
webkitRelativePath: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
Index
Properties
Methods
Properties
Readonly
lastModified
lastModified : number
Readonly
name
name: string
Readonly
size
size: number
Readonly
type
type: string
Readonly
webkitRelativePath
webkitRelativePath : string
Methods
arrayBuffer
- array
Buffer (): Promise<ArrayBuffer> Returns Promise<ArrayBuffer>
slice
stream
- stream(): ReadableStream<Uint8Array>
Returns ReadableStream<Uint8Array>
Provides information about files and allows JavaScript in a web page to access their content.
MDN Reference