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

Whenever a d Dam Document is downloaded to the visitor’s system, the local file reflects the DAM asset’s actual Name property

Avatar

Avatar
Boost 1
Level 1
saurabhs5999723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
saurabhs5999723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
saurabhs5999723
Level 1

17-05-2019

HI All,

I have a requirement where the client wants us to do the following

Whenever a document is downloaded to the visitor’s system, the local file reflects the DAM asset’s actual Name property.

For example, a visitor clicks a link for this URL: https://www.abcdef.com/ca/en/assets/ndx/flyers/frobnitz-buy-one-get-onefree/7119-1127.pdf

The  PDF is shown in the visitor’s browser.

If the visitor then saves or downloads the PDF, the file stored on their system has this file name: frobnitz-buy-one-get-one-free.pdf

Replies

Avatar

Avatar
Give Back 5
Level 4
Bharath_valse
Level 4

Likes

34 likes

Total Posts

65 posts

Correct Reply

11 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
Bharath_valse
Level 4

Likes

34 likes

Total Posts

65 posts

Correct Reply

11 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
Bharath_valse
Level 4

17-05-2019

If I understand correctly, file name needs be the folder name (frobnitz-buy-one-get-one-free.pdf) instead of the actual node name(119-1127.pdf) in jcr. You could look for some existing browser plugins to change the file name on the fly post download or develop one as per requirement. Not certain if this can be achieved server side

Avatar

Avatar
Boost 1
Level 1
saurabhs5999723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
saurabhs5999723
Level 1

Likes

2 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
saurabhs5999723
Level 1

17-05-2019

This is not browser specific. But if you can point me to something, I can try

Avatar

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile

Avatar
Validate 10
MVP
kunal23
MVP

Likes

166 likes

Total Posts

565 posts

Correct Reply

172 solutions
Top badges earned
Validate 10
Validate 1
Ignite 3
Ignite 1
Give Back 50
View profile
kunal23
MVP

17-05-2019

You can use download attribute in HTML5 for this requirement- HTML a download Attribute 

If the above does not work then you can write a custom filter to rewrite the content disposition header value for all PDF request URLs.