FileWithMetadata
@nuclia/core • Docs
@nuclia/core / FileWithMetadata
Interface: FileWithMetadata
Extends
File
Properties
contentType?
optionalcontentType:string
Defined in
libs/sdk-core/src/lib/db/upload.ts:60
lang?
optionallang:string
Defined in
libs/sdk-core/src/lib/db/upload.ts:57
lastModified
readonlylastModified: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).
Inherited from
File.lastModified
Defined in
node_modules/typescript/lib/lib.dom.d.ts:11614
md5?
optionalmd5:string
Defined in
libs/sdk-core/src/lib/db/upload.ts:58
name
readonlyname:string
The name read-only property of the File interface returns the name of the file represented by a File object.
Inherited from
File.name
Defined in
node_modules/typescript/lib/lib.dom.d.ts:11620
payload?
optionalpayload:ICreateResource
Defined in
libs/sdk-core/src/lib/db/upload.ts:59
processing?
optionalprocessing:string
Defined in
libs/sdk-core/src/lib/db/upload.ts:61
size
readonlysize:number
The size read-only property of the Blob interface returns the size of the Blob or File in bytes.
Inherited from
File.size
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4397
split?
optionalsplit:string
Defined in
libs/sdk-core/src/lib/db/upload.ts:62
type
readonlytype:string
The type read-only property of the Blob interface returns the MIME type of the file.
Inherited from
File.type
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4403
webkitRelativePath
readonlywebkitRelativePath: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.
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.
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.
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.
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.
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.
Returns
Promise<string>
Inherited from
File.text
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4433