|
Summary: |
Improve the error message displayed when attaching a file with an allowed Mimetype extension but its content doesn't match the allowed Mimetype |
Issue Type: |
Improvement |
Affects Versions: |
17.4.0 |
Assignee: |
Unassigned |
Attachments: |
Generic_error_displayed.png, image_disguised_as_text_file.txt |
Components: |
Attachments |
Created: |
26/Jun/25 11:50 |
Environment: |
Windows 11 Pro, Chrome 137, using an instance of XWiki 17.4.1 on PostgreSQL 17, Tomcat 11.0.8 |
Priority: |
Major |
Reporter: |
Ilie Andriuta |
Description: |
Steps to reproduce
- Login as Admin
- Go to Administer Wiki > Content > Attachments Restriction
- Under "Allowed Mimetypes", insert some file types to be allowed (e.g. text/plain)
- Under "Blocked Mimetypes", insert some file types to be restricted (e.g. image/*)
- Save
- Have an image file with an extension changed to .txt or use the one attached to this issue
- Login as an user
- Go to a page and upload this file
- Observe the received message
Expected results An error message is displayed informing the user that the content of the file doesn't match the allowed file Mimetypes to be uploaded. Actual results A generic error message is displayed:
An error occurred while uploading <filename>.
|
|