Legacy Knowledge Base
Published Jun. 30, 2025

Edit image from document & media accepting all file extentions regardless of configuration

Written By

Apsara Raheja

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The invalid extension document is uploaded with the valid extension name.
  • Steps to reproduce:

    1. Start Liferay DXP 7.4.
    2. Navigate to Control Panel > System Settings > Documents and Media > Service.
    3. Remove * from the 'File extension' and add .png, and .jpg in the file extension.
    4. Navigate to Site Menu > Content and Data > Document and Media > Click on the add button and select 'File Upload'.
    5. Upload a .png image > Publish.
    6. Now, edit this same file and upload a '.json' file.
    7. Click Publish.

  • Observed behavior: The user is able to upload a JSON file which is not mentioned in the file extension.

  • Expected behavior: Should not be able to upload the file and UI error must be thrown.

Environment

  • Liferay DXP 7.4

Resolution

  • The observed behavior is a known bug that is being addressed via LPS-197132.
  • If a hotfix is required for this issue, please create a support ticket requesting a hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install this hotfix in the respective environment.

Additional Information

  • Observed Behaviour:



  • Expected Behavior:

 

Did this article resolve your issue ?

Legacy Knowledge Base