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.