PcontentDisposition
Bun

property

S3Options.contentDisposition

contentDisposition?: string

The Content-Disposition header value. Controls how the file is presented when downloaded.

// Setting attachment disposition with filename
    const file = s3.file("report.pdf", {
      contentDisposition: "attachment; filename=\"quarterly-report.pdf\""
    });