Skip to main content
Skip to main content

File

Provides information about files and allows JavaScript in a web page to access their content.

MDN Reference

Properties

lastModifiednumberRequired
namestringRequired
sizenumberRequired
typestringRequired
webkitRelativePathstringRequired

Methods

arrayBuffer

MDN Reference

Returns

PromisePromise<ArrayBuffer>Required

slice

MDN Reference

Parameters

startnumber
endnumber
contentTypestring

Returns

BlobBlobRequired

stream

MDN Reference

Returns

ReadableStreamReadableStream<Uint8Array>Required

text

MDN Reference

Returns

PromisePromise<string>Required
Was this section helpful?