From 8473fb863140a0a9ae1206b1fbc84ac75c00fc29 Mon Sep 17 00:00:00 2001 From: Karen Shaw Date: Fri, 7 Jun 2024 17:51:43 +0000 Subject: [PATCH] Name downloaded pdf file download.pdf --- node/src/handlers/get-file-set-download.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/handlers/get-file-set-download.js b/node/src/handlers/get-file-set-download.js index c11c0610..13c9d167 100644 --- a/node/src/handlers/get-file-set-download.js +++ b/node/src/handlers/get-file-set-download.js @@ -112,9 +112,9 @@ async function getDownloadLink(doc) { const getObjectParams = { Bucket: bucket, Key: key, - ResponseContentDisposition: `attachment; filename=${ - doc._source.label - }.${mime.extension(doc._source.mime_type)}`, + ResponseContentDisposition: `attachment; filename=download.${mime.extension( + doc._source.mime_type + )}`, }; const client = new S3Client(clientParams);