Skip to content

basalt / storage/src / PutOptions

Interface: PutOptions ​

Defined in: storage/src/driver.ts:3

Extended by ​

Properties ​

allowedContentTypes? ​

> optional allowedContentTypes?: readonly string[]

Defined in: storage/src/driver.ts:17

Facade-enforced content-type allowlist. When set, the facade rejects an upload whose contentType is missing or not in this list with STORAGE_CONTENT_TYPE. Opt-in: with no value, any content type is allowed.


contentType? ​

> optional contentType?: string

Defined in: storage/src/driver.ts:4


maxBytes? ​

> optional maxBytes?: number

Defined in: storage/src/driver.ts:11

Facade-enforced upload cap. When set, the facade rejects content larger than this many bytes with STORAGE_TOO_LARGE before delegating to the driver. Enforced for Buffer/string inputs, whose byte length is known up front. Opt-in: with no value, uploads are uncapped as before.

Released under the MIT License.