ReadonlyaccountThe authorized AccountInfo containing the S3 endpoint URL.
Optional ReadonlyallowPermit browser-executable responseContentType overrides such as
text/html, JavaScript, SVG, or XML media types. Leave this unset unless
the served object is intentionally meant to render active content from the
storage origin. Pass trustedUnsafeS3PresignOptIn; plain booleans
from request JSON are intentionally ignored by the runtime guard.
Optional ReadonlyallowPermit an inline response Content-Disposition override. Set only when
the object bytes and response headers are trusted to render from the
storage origin. Pass trustedUnsafeS3PresignOptIn; plain booleans
from request JSON are intentionally ignored by the runtime guard.
ReadonlyapplicationB2 application key (secret). Used as the S3 secretAccessKey.
ReadonlyapplicationB2 application key ID. Used as the S3 accessKeyId.
ReadonlybucketBucket containing the object.
Optional ReadonlyexpiresURL validity duration in seconds. Defaults to 3600. Must be an integer from 1 to 604800 (7 days), the AWS Signature Version 4 presign maximum. A presigned URL is a bearer credential for the signed operation; keep this as short as the calling workflow allows.
ReadonlyfileObject key / B2 file name to sign. Keys with path segments exactly .
or .. cannot be presigned safely because common URL parsers normalize
them before sending the request.
Optional ReadonlyregionOverride the S3 region. If omitted, extracted from the S3 API URL.
Optional ReadonlyresponseOverride the response Cache-Control header. Response overrides control headers served from the storage origin; do not populate them from untrusted input without an allow-list.
Optional ReadonlyresponseOverride the response Content-Disposition header. Prefer a safe
attachment disposition when this value can be influenced by users. The
helper rejects inline response dispositions by default because they can
make stored bytes render from the storage origin.
Optional ReadonlyresponseOverride the response Content-Encoding header. Do not populate this from untrusted input without an allow-list.
Optional ReadonlyresponseOverride the response Content-Language header. Do not populate this from untrusted input without an allow-list.
Optional ReadonlyresponseOverride the response Content-Type header. If attacker-controlled, this can make stored bytes render as active content from the storage origin. Restrict it to known-safe values before signing. The helper's built-in rejection of known browser-executable and sniffable XML/JavaScript media types is best-effort and does not replace an application allow-list.
Optional ReadonlyresponseOverride the response Expires header. Do not populate this from untrusted input without an allow-list.
Optional ReadonlyversionOptional S3 version ID to include in the signed GET request.
Options for presignS3GetObjectUrl.