Skip to main content

FileWithMetadata

@nuclia/coreDocs


@nuclia/core / FileWithMetadata

Interface: FileWithMetadata

Extends

  • File

Properties

contentType?

optional contentType: string

Defined in

libs/sdk-core/src/lib/db/upload.ts:60


lang?

optional lang: string

Defined in

libs/sdk-core/src/lib/db/upload.ts:57


lastModified

readonly lastModified: 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).

MDN Reference

Inherited from

File.lastModified

Defined in

node_modules/typescript/lib/lib.dom.d.ts:11614


md5?

optional md5: string

Defined in

libs/sdk-core/src/lib/db/upload.ts:58


name

readonly name: string

The name read-only property of the File interface returns the name of the file represented by a File object.

MDN Reference

Inherited from

File.name

Defined in

node_modules/typescript/lib/lib.dom.d.ts:11620


payload?

optional payload: ICreateResource

Defined in

libs/sdk-core/src/lib/db/upload.ts:59


processing?

optional processing: string

Defined in

libs/sdk-core/src/lib/db/upload.ts:61


size

readonly size: number

The size read-only property of the Blob interface returns the size of the Blob or File in bytes.

MDN Reference

Inherited from

File.size

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4397


split?

optional split: string

Defined in

libs/sdk-core/src/lib/db/upload.ts:62


type

readonly type: string

The type read-only property of the Blob interface returns the MIME type of the file.

MDN Reference

Inherited from

File.type

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4403


webkitRelativePath

readonly webkitRelativePath: 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 input element with its webkitdirectory attribute set.

MDN Reference

Inherited from

File.webkitRelativePath

Defined in

node_modules/typescript/lib/lib.dom.d.ts:11626

Methods

arrayBuffer()

arrayBuffer(): Promise<ArrayBuffer>

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.

MDN Reference

Returns

Promise<ArrayBuffer>

Inherited from

File.arrayBuffer

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4409


bytes()

bytes(): Promise<Uint8Array<ArrayBuffer>>

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.

MDN Reference

Returns

Promise<Uint8Array<ArrayBuffer>>

Inherited from

File.bytes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4415


slice()

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

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.

MDN Reference

Parameters

start?: number

end?: number

contentType?: string

Returns

Blob

Inherited from

File.slice

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4421


stream()

stream(): ReadableStream<Uint8Array<ArrayBuffer>>

The stream() method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the Blob.

MDN Reference

Returns

ReadableStream<Uint8Array<ArrayBuffer>>

Inherited from

File.stream

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4427


text()

text(): Promise<string>

The text() method of the string containing the contents of the blob, interpreted as UTF-8.

MDN Reference

Returns

Promise<string>

Inherited from

File.text

Defined in

node_modules/typescript/lib/lib.dom.d.ts:4433