brows3r — TypeScript API
    Preparing search index...

    Function objectPresign

    • Generate a presigned GetObject URL for bucket/key.

      The URL is generated entirely in Rust — AWS credentials never cross the IPC boundary. The returned URL is valid for expiresSec seconds (default: 3 600 s / 1 hour) and may be shared or copied to the clipboard.

      The backend validates the expiry range [60, 604_800] and returns AppError { kind: "Validation" } for out-of-range values.

      Parameters

      • profileId: string

        The profile whose credentials to use.

      • bucket: string

        The bucket name.

      • key: string

        The full S3 key of the object.

      • OptionalexpiresSec: number

        URL lifetime in seconds. Must be in [60, 604_800]. Defaults to 3_600 (1 hour) when omitted.

      Returns Promise<PresignedUrl>