-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What is the problem this feature would solve?
cannot use bun s3 client because it cannot set content-disposition (other headers including content encoding too)
What is the feature you are proposing to solve the problem?
const file = s3Client.file(key, { bucket });
await file.write(buffer, {
type: contentType,
disposition: contentDisposition
// or headers: { 'Content-Disposition': contentDisposition }
});
What alternatives have you considered?
aws sdk uses this:
const command = new PutObjectCommand({
Bucket: bucket,
Key: key,
Body: buffer,
ContentType: contentType,
ContentDisposition: contentDisposition,
});
await s3Client.send(command);
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request