core icon indicating copy to clipboard operation
core copied to clipboard

Upload New File: Permissions and Error Messaging

Open patrick-schweiger opened this issue 8 months ago • 1 comments

Problem Statement

From the dotCMS backend, I would like to prevent content editor from being able to access and use the "Upload New File" button from within an image field in a content type. If I don't give any permissions to content editors to the default File Asset content type, I would expect them to get an error message when they attempt to do so. However, current behavior is that it will appear content editors are able to upload an image, no error is shown, but no image ever gets uploaded. It's good the image is not uploaded, since the content editor doesn't have permissions, but this is confusing behavior as the user has no indication of an error and would continuously try to keep uploading the image.

Image Image

Steps to Reproduce

Here is a short video demonstrating the issue: https://drive.google.com/file/d/1uGjgcstMzUCaTuv1dtNttpdM0HFXxj2a/view?usp=sharing

Acceptance Criteria

  • I would expect an error message to appear when unable to upload an image due to permissioning

dotCMS Version

latest, dotevergreen

Severity

Low - Minor issue or cosmetic

Links

N/A

patrick-schweiger avatar Mar 06 '26 19:03 patrick-schweiger

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jun 05 '26 02:06 github-actions[bot]