Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
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
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
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
Vistas
Respuestas
Total de me gusta
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
Vistas
Respuestas
Total de me gusta
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
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas