AEM 6.3 - Automatic download from DAM via link. | Adobe Higher Education
Skip to main content
Jeanmaradiaga
Level 3
March 22, 2021
解決済み

AEM 6.3 - Automatic download from DAM via link.

  • March 22, 2021
  • 1 の返信
  • 1462 ビュー

Is there an easy way to automatically download a file (like a PDF) using the DAM's location in a anchor tag? For example:

 

<a href="my-site-stage/assetdetails.html/content/dam/tweed/pdf-files/TEST%20PDF.pdf">

Download instructions here

</a>

 

It seems like something that would be fairly common but clicking the link takes me to the DAM itself, where I have to first login and then find the donwload button and click it.

このトピックへの返信は締め切られました。
ベストアンサー Pawan-Gupta

hello, 

 

your path should be constructed to actual resource /content/dam/tweed/pdf-files/TEST%20PDF.pdf  (not prefixing my-site-stage/assetdetails.html which is for author mode) for public facing page (an i believe you want these files to be available on public. else, you need to put more constraint while generating link)

 

note: there are more stuff you can do when it comes to caching and supporting big file size.

 

thanks!!

1 の返信

Pawan-Gupta
Level 8
March 22, 2021

hello, 

 

your path should be constructed to actual resource /content/dam/tweed/pdf-files/TEST%20PDF.pdf  (not prefixing my-site-stage/assetdetails.html which is for author mode) for public facing page (an i believe you want these files to be available on public. else, you need to put more constraint while generating link)

 

note: there are more stuff you can do when it comes to caching and supporting big file size.

 

thanks!!

Jeanmaradiaga
Jeanmaradiaga作成者
Level 3
March 22, 2021
Thanks!