fix(api): 🐛 Specify content-type when uploading to S3

This commit is contained in:
Jesse Wierzbinski 2024-11-24 13:16:52 +01:00
parent 6301121900
commit 59b069ce2c
No known key found for this signature in database

View file

@ -44,6 +44,9 @@ export class S3MediaDriver implements MediaDriver {
await this.s3Client.putObject(path, file.stream(), { await this.s3Client.putObject(path, file.stream(), {
size: file.size, size: file.size,
metadata: {
"Content-Type": file.type,
},
}); });
return { return {