Skip to content

Commit

Permalink
Merge pull request #213 from nulib/4756-pdf-download-filename
Browse files Browse the repository at this point in the history
Name downloaded pdf file download.pdf
  • Loading branch information
kdid authored Jun 7, 2024
2 parents 85ad566 + 8473fb8 commit 414f47b
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 414f47b

Please sign in to comment.