Interface File
interface File {
lastModified: number;
name: string;
size: number;
type: string;
webkitRelativePath: string;
arrayBuffer(): Promise<ArrayBuffer>;
bytes(): Promise<Uint8Array>;
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>;
bytes(): Promise<Uint8Array>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
Hierarchy
- Blob
- File (View Summary)
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
- arrayBuffer(): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
bytes
- bytes(): Promise<Uint8Array>
Returns Promise<Uint8Array>
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