StoreConfig
Defined in: assets/src/index.ts:43
Configuration that can be passed to set and override defaults and add progress callback
contentEncoding?
Section titled “contentEncoding?”
optionalcontentEncoding:ContentEncoding
Defined in: assets/src/index.ts:68
Content encoding
Default
Section titled “Default”'identity'contentType?
Section titled “contentType?”
optionalcontentType:string
Defined in: assets/src/index.ts:58
File content type
Default
Section titled “Default”File/Blob object type or type from file name extensionfileName?
Section titled “fileName?”
optionalfileName:string
Defined in: assets/src/index.ts:48
File name
Default
Section titled “Default”File object name or name in file pathheaders?
Section titled “headers?”
optionalheaders: [string,string][]
Defined in: assets/src/index.ts:63
Custom headers to be sent with the asset
Default
Section titled “Default”[]onProgress()?
Section titled “onProgress()?”
optionalonProgress: (progress) =>void
Defined in: assets/src/index.ts:76
Callback method to get upload progress in bytes (current / total)
Parameters
Section titled “Parameters”progress
Section titled “progress”Returns
Section titled “Returns”void
optionalpath:string
Defined in: assets/src/index.ts:53
File path that file will be uploaded to
Default
Section titled “Default”'/'sha256?
Section titled “sha256?”
optionalsha256:Uint8Array<ArrayBufferLike>
Defined in: assets/src/index.ts:72
File hash generation will be skipped if hash is provided