Skip to content

StoreConfig

Defined in: assets/src/index.ts:43

Configuration that can be passed to set and override defaults and add progress callback

optional contentEncoding: ContentEncoding

Defined in: assets/src/index.ts:68

Content encoding

'identity'

optional contentType: string

Defined in: assets/src/index.ts:58

File content type

File/Blob object type or type from file name extension

optional fileName: string

Defined in: assets/src/index.ts:48

File name

File object name or name in file path

optional headers: [string, string][]

Defined in: assets/src/index.ts:63

Custom headers to be sent with the asset

[]

optional onProgress: (progress) => void

Defined in: assets/src/index.ts:76

Callback method to get upload progress in bytes (current / total)

Progress

void


optional path: string

Defined in: assets/src/index.ts:53

File path that file will be uploaded to

'/'

optional sha256: Uint8Array<ArrayBufferLike>

Defined in: assets/src/index.ts:72

File hash generation will be skipped if hash is provided