Skip to main content
Skip to main content

File

admin/uploads.internal.File

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

MDN Reference

Properties

lastModifiednumberRequired
namestringRequired
prototypeBlobRequired
sizenumberRequired
typestringRequired
webkitRelativePathstringRequired

Methods

arrayBuffer

arrayBuffer(): Promise<ArrayBuffer>

MDN Reference

Returns

Promise<ArrayBuffer>

PromisePromise<ArrayBuffer>Required

Inherited from

Blob.arrayBuffer


slice

slice(start?, end?, contentType?): Blob

MDN Reference

Parameters

startnumber
endnumber
contentTypestring

Returns

Blob

BlobBlobRequired

Inherited from

Blob.slice


stream

stream(): ReadableStream<Uint8Array>

MDN Reference

Returns

ReadableStream<Uint8Array>

ReadableStreamReadableStream<Uint8Array>Required

Inherited from

Blob.stream


text

text(): Promise<string>

MDN Reference

Returns

Promise<string>

PromisePromise<string>Required

Inherited from

Blob.text

Was this section helpful?