Abrir PDF no navegador | 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 TatiSantos

Thank you so much!!

2 replies

EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
August 9, 2023

Yes, this behavior is due to the "Content-Disposition" header which is responsible for telling the browser to download an attachment or to open it in the browser, by default this will be set to download any asset.

 

You can disable this in the Apache Sling Content Disposition Filter, but I would recommend using the Apache method to fix it instead.

 

You can find all the details:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-5-asset-direct-link-downloads-does-not-open-asset-in/m-p/352145 

http://www.sgaemsolutions.com/2019/10/aempdf-is-getting-downloded-instead-of.html 

Esteban Bustamante
TatiSantosAuthorAccepted solution
Level 2
August 13, 2023

Thank you so much!!