Skip to main content

@nuclia/core / Exports / FileWithMetadata

Interface: FileWithMetadata

Hierarchy

  • File

    FileWithMetadata

Table of contents

Properties

Methods

Properties

contentType

Optional contentType: string

Defined in

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


lang

Optional lang: string

Defined in

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


lastModified

Readonly lastModified: number

MDN Reference

Inherited from

File.lastModified

Defined in

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


md5

Optional md5: string

Defined in

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


name

Readonly name: string

MDN Reference

Inherited from

File.name

Defined in

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


payload

Optional payload: ICreateResource

Defined in

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


size

Readonly size: number

MDN Reference

Inherited from

File.size

Defined in

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


type

Readonly type: string

MDN Reference

Inherited from

File.type

Defined in

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


webkitRelativePath

Readonly webkitRelativePath: string

MDN Reference

Inherited from

File.webkitRelativePath

Defined in

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

Methods

arrayBuffer

arrayBuffer(): Promise<ArrayBuffer>

MDN Reference

Returns

Promise<ArrayBuffer>

Inherited from

File.arrayBuffer

Defined in

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


slice

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

MDN Reference

Parameters

NameType
start?number
end?number
contentType?string

Returns

Blob

Inherited from

File.slice

Defined in

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


stream

stream(): ReadableStream<Uint8Array>

MDN Reference

Returns

ReadableStream<Uint8Array>

Inherited from

File.stream

Defined in

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


text

text(): Promise<string>

MDN Reference

Returns

Promise<string>

Inherited from

File.text

Defined in

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