From 206545f3505dbf4333ea5938ff5178c391fa8a46 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 12 Jul 2022 17:14:22 +0100 Subject: [PATCH] fix: Ensure signed attachment urls are always downloaded rather than loaded in browser --- server/utils/s3.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/utils/s3.ts b/server/utils/s3.ts index 4a911debf..160691db5 100644 --- a/server/utils/s3.ts +++ b/server/utils/s3.ts @@ -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