createSignedUploadUrl
createSignedUploadUrl(
key,options):Promise<string>
Defined in: packages/storage/src/route-handlers.ts:294
Convenience wrapper that mints an /uploads/* proxy URL for a given R2
key. Exported so callers who prefer a flat import (createSignedUploadUrl)
can avoid reaching into the storage instance — this is identical to
StorageInstance.signedUrl.
Parameters
Section titled “Parameters”string
R2 object key.
options
Section titled “options”Must include env (with STORAGE_SECRET) and expiresIn.
basePath?
Section titled “basePath?”string
Record<string, unknown>
expiresIn
Section titled “expiresIn”string
Returns
Section titled “Returns”Promise<string>