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 supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability 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

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy