legacy-knowledge-base
公開されました Jun. 30, 2025

An error should appear immediately after uploading a file of wrong extension within the size limit

written-by

Rishabh Agrawal

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

learn-legacy-article-disclaimer-text

Issue

  • When trying to upload a file in blogs that is less than the specified limit with the wrong extension, it shows the progress bar for a while and then gives the error.
  • Based on user experience, the error should appear immediately.

    Steps to reproduce:
    1. Navigate to System Settings --> Blogs --> File Uploads
    2. Change the Maximum Blogs Image Size to 50 MB (52428800)
    3. Navigate to Content & Data --> Blogs and create a new blog
    4. Drag and drop a file of wrong extension having size 40-49 MB. i.e. a large file but under the specified limit.

    Observed Behavior: Error is shown after showing a progress bar for a few moments depending on file size.
    Expected Behavior: Error message should appear immediately.

Environment

  • Liferay DXP [all versions]

Resolution

  1. As per the expected behavior of the product, the extension check is performed at the backend, therefore it has to be uploaded before checking it.
  2. Moreover, the other checks are performed on the front side for example: size validation.
did-this-article-resolve-your-issue

legacy-knowledge-base