How to add additional response header field? For example the request looks like this:
http://example.com/content/dam/examples/ex.pdf?
I want to add: Content-Disposition: attachment It will force a browser to download file, not showing a file in a browser
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes