Skip to content

Commit

Permalink
Name downloaded pdf file download.pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Jun 7, 2024
1 parent d46f81c commit 8473fb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/src/handlers/get-file-set-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8473fb8

Please sign in to comment.