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

ArgumentTypeDescription
collectionSlugThe collection value.
idstringThe id value.
optionsUploadURLOptions | undefinedThe options value.

Returns

The declared result.

Promise<UploadURL>

Full signature

RiduClient.getUploadURL<Slug extends UploadCollectionSlug<Config>>( collection: Slug, id: string, options?: UploadURLOptions, ): Promise<UploadURL>

Source packages/sdk/src/types.ts:954

Related types

  • UploadCollectionSlug

    Collection slugs with the generated upload capability.

  • UploadURLOptions

    Options for short-lived upload delivery URLs.

  • UploadURL

    A delivery URL that authorizes one upload object without carrying the session token.