Creates a new File instance.
An Array strings, or ArrayBuffer, ArrayBufferView, Blob objects, or a mix of any of such objects, that will be put inside the File.
The name of the file.
Optional options: FilePropertyBagAn options object containing optional attributes for the file.
Readonly [toReadonly lastThe last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
Readonly nameName of the file referenced by the File object.
Readonly sizeThe total size of the Blob in bytes.
v15.7.0, v14.18.0
Readonly typeThe content-type of the Blob.
v15.7.0, v14.18.0
Returns a promise that fulfills with an ArrayBuffer containing a copy of
the Blob data.
v15.7.0, v14.18.0
Creates and returns a new Blob containing a subset of this Blob objects
data. The original Blob is not altered.
Optional start: numberThe starting index.
Optional end: numberThe ending index.
Optional type: stringThe content-type for the new Blob
v15.7.0, v14.18.0
Returns a new ReadableStream that allows the content of the Blob to be read.
v16.7.0
Generated using TypeDoc
A
Blobencapsulates immutable, raw data that can be safely shared across multiple worker threads.Since
v15.7.0, v14.18.0