Legacy Knowledge Base
Published Jun. 30, 2025

Uploading an image to a form using the 'Web Content Images' option fails

Written By

Kanchan Bisht

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

  • Users are unable to upload a new image using the option Web Content Images.

  • Steps to reproduce
    1) Log in as the admin user.
    2) Navigate to Content & Data > Forms > Create a new Form with an Image element > Publish.
    3) Navigate to Site > Add a Form Widget > Display the Form created above.
    4) Now, navigate to Control Panel > Users and Organizations > Create a new user (User1).
    5) In Memberships, make the user a member of the Liferay DXP site.
    6) Log in with User1.
    7) Click on the Form and try to upload an image using the option Web Content Images.
    Observed Behavior: The user cannot upload the image and the following error is shown in the UI:
    An unexpected error occurred while uploading your file
    Expected Behavior: The user can upload a new image.

Environment

  • Liferay DXP 7.3

Resolution

  • The observed behavior is the expected behavior of the DXP.
    • The permission required to upload images to the 'Web Content Images' tab is the same as that required to add web content and, by default, site members are not allowed to do so.
    • This is expected and Forms is not supposed to add permission to add web contents automatically.

Additional Information

  • However, users can use the 'Documents and Media' section, where site members can upload documents by default.
Did this article resolve your issue ?

Legacy Knowledge Base