Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.3 - Automatic download from DAM via link.

Avatar

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Jeanmaradiaga
Level 1

22-03-2021

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.

AEM 6.3 DAM DAM Assets Download Links
View Entire Topic

Avatar

Avatar
Validate 1
Level 6
rush_pawan
Level 6

Likes

91 likes

Total Posts

159 posts

Correct Reply

66 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
Level 6
rush_pawan
Level 6

Likes

91 likes

Total Posts

159 posts

Correct Reply

66 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
rush_pawan
Level 6

22-03-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!!