Uploads

Fetch Public File URLs

Returns public presigned URLs for specified files in an upload

Request

  • uploadId
    string
  • filePaths
    array of strings
  • expirySeconds
    optional number

Response

  • files
    array of objects
    • files.uploadId
      string
    • files.url
      string
    • files.path
      string
    • files.mime
      nullable string
    • files.contentLength
      string

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.uploads.fetch_public_file_urls({
  // Request body
});