Skip to content

Commit

Permalink
fix: fix storage of files on S3 (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
RutZap authored Jan 13, 2025
1 parent 93102eb commit dd1be72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/functions-runtime/src/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ async function storeFile(contents, key, filename, contentType, expires) {
Body: contents,
ContentType: contentType,
ContentDisposition: `attachment; filename="${encodeURIComponent(
this.filename
filename
)}"`,
Metadata: {
filename: this.filename,
filename: filename,
},
ACL: "private",
};
Expand Down

0 comments on commit dd1be72

Please sign in to comment.