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 01c79fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 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,7 @@ 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 01c79fa

Please sign in to comment.