Enonic version: 6.5.4
Disposition Type - there is a new header in 6.5.4 response, for documents (PDF in my case).
How I can disable/avoid Disposition Type header from such responses?
Disposition Type - there is a new header in 6.5.4 response, for documents (PDF in my case).
How I can disable/avoid Disposition Type header from such responses?
When you create the attachment URL, set the “download” to false. http://repo.enonic.com/public/com/enonic/xp/docs/6.5.4/docs-6.5.4-libdoc.zip!/module-lib_xp_portal.html#.attachmentUrl
As I can see there is no such option. Any ideas how to fix it via web?
Check the screenshots:
1.
Are you referring to the Media link in Content Studio, when you edit a content that is a PDF?
The content-disposition header cannot be disabled for those media links, it is part of the admin, not customizable.
What would you expect to happen in this case, open the pdf inside the browser instead of downloading? Open in a new tab?
We could try to improve it in a next version. Maybe set content-disposition: inline for pdf files, or have 2 different links (download and open).
What would you expect to happen in this case, open the pdf inside the browser instead of downloading? Open in a new tab?
I want to customize PDFs behavior. For one pages I to have downloadable PDFs, for another - PDFs that can be open in new tab.
We could try to improve it in a next version.
How do you think it will be in near future or not ?
We are now close to the 6.6 release. So it’s a bit late for this one.
These improvements will probably be part of 6.7.