Skip to content

Commit

Permalink
Merge pull request #779 from RockefellerArchiveCenter/download
Browse files Browse the repository at this point in the history
Add response-content-disposition query param
  • Loading branch information
helrond authored Jan 23, 2025
2 parents 87e1765 + e894c68 commit fcbb341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PageDigitalObject/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const PageDigitalObject = ({isMobile}) => {
/** Constructs url for single image download */
const imageDownloadUrl = infoResponse => {
const imagePath = infoResponse.id && infoResponse.id.split('/').at(-1)
const downloadUrl = `${process.env.REACT_APP_S3_BASEURL}/images/${imagePath}`
const downloadUrl = `${process.env.REACT_APP_S3_BASEURL}/images/${imagePath}?response-content-disposition=attachment;filename=${imagePath}.jp2`
return downloadUrl
}

Expand Down

0 comments on commit fcbb341

Please sign in to comment.