File

File API (subset) Represents an immutable raw binary data object.

Module: whatwg.file Support: Experimental Since: 1.1.0 Docs: WHATWG Docs

Type Aliases

  • BlobPart

Interface Blob

Represents an immutable raw binary data object.

Since: 1.1.0 Docs: WHATWG Docs

8 members: 8 undocumented

Constructors

⚪ constructor(blobBits, options)
sequence, BlobPropertyBag

Methods

⚪ slice(start, end, contentType)
→ Blob
⚪ text()
→ Promise
⚪ arrayBuffer()
→ Promise
⚪ bytes()
→ Promise
⚪ stream()
→ ReadableStream

Properties

⚪ size
→ u64
⚪ type
The size of the Blob in bytes.

---

Dictionary BlobPropertyBag

1 members: 1 undocumented

Properties

⚪ type
The size of the Blob in bytes.

---

Interface File

A Blob with an associated name and last-modified timestamp, representing a file-like object.

Extends: Blob Since: 1.1.0 Docs: WHATWG Docs

3 members: 3 undocumented

Constructors

⚪ constructor(fileBits, fileName, options)
sequence, string, FilePropertyBag

Properties

⚪ name
→ string
⚪ lastModified
Milliseconds since the Unix epoch when the file was last modified.

---

Dictionary FilePropertyBag

Extends: BlobPropertyBag

1 members: 1 undocumented

Properties

⚪ lastModified
Milliseconds since the Unix epoch when the file was last modified.

---