Issue
- Changing the extension of document and media file, causes the downloaded file to have the modified extension.
-
Steps to Reproduce:
1. Create a new basic document
2. Upload a file to the document (liferay-logo.png for the test). Publish
3. Download the file
4. Edit file and change the extension within the file name (.png to .jpg for my test). Publish.
5. Download the file -
Expected Result:
The file downloads with the correct extension (.png for the test) -
Actual Result:
The file downloads with the new extension in the file name (.jpg in my test) Attempting to open the file fails due to "Error Interpreting JPEG image file
Environment
- Liferay DXP 7.0
Resolution
- The observed behavior is a known bug which is addressed via LPS-84230
- However, the issue has been fixed in Liferay DXP 7.0 fix-pack-58
Additional Information
- If a hotfix is required, please create a support ticket requesting the hotfix by attaching the patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install the Fixpack/ Hotfix in your environment.