Affects Version/s: 7.0.X EE, Master
Component/s: ~ [Archived] Collaboration
Web browser directly opens a file when clicking on Download anchor text in Documents and Media portlet if portal.proxy.path is configured, and Liferay is accessed via a proxy server. In this scenario, we are unable to download the file by clicking on Download anchor text.
Steps to reproduce
1. Configure apache as the followings in httpd.conf.
2.Set portal.proxy.path=/abc in portal-ext.properties
3.Start master or (DXP bundle)
4.Place a Documents and Media portlet on homepage, and upload any file (I used a txt file)
5. Click on the uploaded file's link text, and click on Info button to open a info sidebar
In the info sidebar, click on the Download link text
File is opened by browser. However, after refreshing the page, the content is served as a download.
File is served as a downloadable file.