FilesFor3PStorage interface

Note

This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Object used to represent a file

Extends

Blob

Properties

lastModified

A number that represents the number of milliseconds since the Unix epoch

name

Name of the file

type

file type

webkitRelativePath

A string containing the path of the file relative to the ancestor directory the user selected

Inherited Properties

size

Inherited Methods

arrayBuffer()
slice(number, number, string)
stream()
text()

Property Details

lastModified

A number that represents the number of milliseconds since the Unix epoch

lastModified: number

Property Value

number

name

Name of the file

name: string

Property Value

string

type

file type

type: string

Property Value

string

webkitRelativePath

A string containing the path of the file relative to the ancestor directory the user selected

webkitRelativePath?: string

Property Value

string

Inherited Property Details

size

size: number

Property Value

number

Inherited From Blob.size

Inherited Method Details

arrayBuffer()

function arrayBuffer(): Promise<ArrayBuffer>

Returns

Promise<ArrayBuffer>

Inherited From Blob.arrayBuffer

slice(number, number, string)

function slice(start?: number, end?: number, contentType?: string): Blob

Parameters

start

number

end

number

contentType

string

Returns

Blob

Inherited From Blob.slice

stream()

function stream(): ReadableStream<Uint8Array>

Returns

ReadableStream<Uint8Array>

Inherited From Blob.stream

text()

function text(): Promise<string>

Returns

Promise<string>

Inherited From Blob.text