Skip to content

basalt / storage/src / TemporaryUploadUrl

Interface: TemporaryUploadUrl ​

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

A pre-signed direct upload: the client sends method url with exactly headers.

Properties ​

expiresAt ​

> expiresAt: Date

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

When the URL stops working.


headers ​

> headers: Record<string, string>

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

Headers the client MUST send verbatim (they are part of the signature, or required by the backend). Adding, dropping or changing one fails the upload. Content-Length is included when bound; browsers set it themselves from the body.


key? ​

> optional key?: string

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

Full object key the upload lands on, tenant prefix included. Set by the Disk layer.


method ​

> method: "PUT"

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


url ​

> url: string

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

Released under the MIT License.