StoreConfig
Defined in: assets/src/index.ts:43
Configuration that can be passed to set and override defaults and add progress callback
Properties
Section titled “Properties”contentEncoding?
Section titled “contentEncoding?”
optional
contentEncoding:ContentEncoding
Defined in: assets/src/index.ts:68
Content encoding
Default
Section titled “Default”'identity'
contentType?
Section titled “contentType?”
optional
contentType:string
Defined in: assets/src/index.ts:58
File content type
Default
Section titled “Default”File/Blob object type or type from file name extension
fileName?
Section titled “fileName?”
optional
fileName:string
Defined in: assets/src/index.ts:48
File name
Default
Section titled “Default”File object name or name in file path
headers?
Section titled “headers?”
optional
headers: [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()?”
optional
onProgress: (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
optional
path:string
Defined in: assets/src/index.ts:53
File path that file will be uploaded to
Default
Section titled “Default”'/'
sha256?
Section titled “sha256?”
optional
sha256:Uint8Array
<ArrayBufferLike
>
Defined in: assets/src/index.ts:72
File hash generation will be skipped if hash is provided