@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Function presignGetObjectUrl

    • Constructs a presigned download URL using B2's native download authorization. This is not a standard S3 presigned URL but works for B2 download endpoints.

      Parameters

      • downloadUrl: string

        The B2 download URL from authorization (e.g., https://f004.backblazeb2.com).

      • bucketName: string

        The bucket containing the file.

      • fileName: string

        The file name (path) to download.

      • authorizationToken: string

        A download authorization token from b2_get_download_authorization.

      • validDurationInSeconds: number = 3600

        URL validity duration in seconds. Defaults to 3600 (1 hour).

      Returns string

      The presigned download URL string.