Add additional header field | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

If you are using latest AEM version & want this option for all PDF. You can backlist at [1] & which forces the file to download.

[1]  http://<host>:<port>/system/console/configMgr/com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

If you are using latest AEM version & want this option for all PDF. You can backlist at [1] & which forces the file to download.

[1]  http://<host>:<port>/system/console/configMgr/com.day.cq.dam.core.impl.servlet.SafeBinaryGetServlet

Ojjis
Level 7
October 16, 2015

Hiya,
i would try to set that in the dispatcher for the pdf extensions. Something in the lines of:
 

<IfModule mod_headers.c> <FilesMatch "\.(PDF|pdf)$"> //... other info Header set Content-Disposition "attachment" //... other info </FilesMatch> </IfModule>

Hope that helps

/Johan