Type Alias FileDownloadUrlOptions

FileDownloadUrlOptions: {
    contentDisposition?: string | null;
    contentType?: string | null;
    ttl?: ITimeSpan;
}

Configuration options for generating signed download URLs.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • OptionalcontentDisposition?: string | null

    Content-Disposition header value for controlling download behavior. Set to 'attachment' to force download, 'inline' to display in browser. If not specified, defaults to null (browser decides based on content type).

    null
    
  • OptionalcontentType?: string | null

    MIME type to include in the download response headers. Controls how the browser handles the file (e.g., display inline or download as attachment). If not specified, the content type will be inferred from the file key.

    null (inferred from file extension)
    
  • Optionalttl?: ITimeSpan

    Time-to-live (TTL) duration for the signed URL. The URL will only be valid for this duration before requiring re-signing.

    TimeSpan.fromMinutes(10)