Skip to content

Commit

Permalink
Use accesion number for pdf/zip file download
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Jun 13, 2024
1 parent a5a90bc commit e1b46e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/handlers/get-file-set-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function getDownloadLink(doc) {
const getObjectParams = {
Bucket: bucket,
Key: key,
ResponseContentDisposition: `attachment; filename=download.${mime.extension(
ResponseContentDisposition: `attachment; filename=${doc._source.accession_number}.${mime.extension(
doc._source.mime_type
)}`,
};
Expand Down

0 comments on commit e1b46e9

Please sign in to comment.