type

Ptype
Bun

Symbol

S3FilePresignOptions.type

type?: string

The Content-Type of the file. Automatically set based on file extension when possible.

// Setting explicit content type
    const file = s3.file("data.bin", {
      type: "application/octet-stream"
    });