mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Specify content-type when uploading to S3
This commit is contained in:
parent
6301121900
commit
59b069ce2c
|
|
@ -44,6 +44,9 @@ export class S3MediaDriver implements MediaDriver {
|
|||
|
||||
await this.s3Client.putObject(path, file.stream(), {
|
||||
size: file.size,
|
||||
metadata: {
|
||||
"Content-Type": file.type,
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue