Skip to content

Commit

Permalink
fix: Ensure signed attachment urls are always downloaded rather than …
Browse files Browse the repository at this point in the history
…loaded in browser
  • Loading branch information
tommoor committed Jul 12, 2022
1 parent e92d68a commit 206545f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils/s3.ts
Expand Up @@ -226,6 +226,7 @@ export const getSignedUrl = async (key: string, expiresInMs = 60) => {
Bucket: AWS_S3_UPLOAD_BUCKET_NAME,
Key: key,
Expires: expiresInMs,
ResponseContentDisposition: "attachment",
};

const url = isDocker
Expand Down

0 comments on commit 206545f

Please sign in to comment.