method
RiduClient.getUploadURL
Create a short-lived delivery URL for a private upload. Use it where the browser cannot send an Authorization header, such as <img src>. The URL never contains the session token and stops working when the session ends or read access is lost.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | UploadURLOptions | | The options value. |
Returns
The declared result.
Promise<UploadURL>Full signature
RiduClient.getUploadURL<Slug extends UploadCollectionSlug<Config>>(
collection: Slug,
id: string,
options?: UploadURLOptions,
): Promise<UploadURL>Related types
UploadCollectionSlugCollection slugs with the generated upload capability.
UploadURLOptionsOptions for short-lived upload delivery URLs.
UploadURLA delivery URL that authorizes one upload object without carrying the session token.