Appearance
Interface: File
Defined in: node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:803
Do not reference this directly.
Extends
_File
Properties
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
lastModified | readonly | number | The lastModified read-only property of the File interface provides the 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. MDN Reference | - | _File.lastModified | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:14425 |
name | readonly | string | The name read-only property of the File interface returns the name of the file represented by a File object. For security reasons, the path is excluded from this property. MDN Reference | - | _File.name | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:14431 |
webkitRelativePath | readonly | string | The webkitRelativePath read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an element with its webkitdirectory attribute set. MDN Reference | - | _File.webkitRelativePath | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:14437 |
type | readonly | string | The type read-only property of the Blob interface returns the MIME type of the file. MDN Reference | _File.type | - | node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:804 |
size | readonly | number | The size read-only property of the Blob interface returns the size of the Blob or File in bytes. MDN Reference | _File.size | - | node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts:805 |
Methods
arrayBuffer()
ts
arrayBuffer(): Promise<ArrayBuffer>;Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:5056
The arrayBuffer() method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
Returns
Promise<ArrayBuffer>
Inherited from
ts
_File.arrayBufferbytes()
ts
bytes(): Promise<Uint8Array<ArrayBuffer>>;Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:5062
The bytes() method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
Returns
Promise<Uint8Array<ArrayBuffer>>
Inherited from
ts
_File.bytesslice()
ts
slice(
start?: number,
end?: number,
contentType?: string): Blob;Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:5068
The slice() method of the Blob interface creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
Parameters
| Parameter | Type |
|---|---|
start? | number |
end? | number |
contentType? | string |
Returns
Blob
Inherited from
ts
_File.slicestream()
ts
stream(): ReadableStream<Uint8Array<ArrayBuffer>>;Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:5074
The stream() method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the Blob.
Returns
ReadableStream<Uint8Array<ArrayBuffer>>
Inherited from
ts
_File.streamtext()
ts
text(): Promise<string>;Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.dom.d.ts:5080
The text() method of the Blob interface returns a Promise that resolves with a string containing the contents of the blob, interpreted as UTF-8.
Returns
Promise<string>
Inherited from
ts
_File.text