Skip to main content

Interface: StorageReader

server.StorageReader

An interface to read from storage within Convex query functions.

Hierarchy

Methods

getUrl

getUrl(storageId): Promise<string>

Get the URL for a file in storage by its StorageId.

The GET response includes a standard HTTP Digest header with a sha256 checksum.

Parameters

NameTypeDescription
storageIdstringThe StorageId of the file to fetch from Convex storage.

Returns

Promise<string>

  • A url which fetches the file via an HTTP GET.