-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.12
-
None
-
None
-
Empty show more show less
-
UI Maintenance 3
-
3
Steps to reproduce
- Create a dialog which contains an upload field as follows:
form: properties: upload: $type: uploadField allowedMimeTypePattern: image/jpeg,image/gif,image/png,image/tiff
- Create the component and click on the "upload" button
- Check that, on the dialog for selecting files, you can switch the option from "image/jpeg,image/gif,image/png,image/tiff" to ". all files"
- Select ". all files" option, choose a file which doesn't match the mimeType pattern and upload it
Expected results
No ". all files" is displayed or, in any case, even if the option is displayed and other file types can be selected, the upload is prevented
Actual results
No filetype restriction exists
Workaround
N/A
Development notes
- reproduced under Windows
- reproduced in (Ubuntu) Linux - Firefox, Chrome.
Acceptance criteria
- causes
-
MGNLUI-7011 Since 6.2.15 allowedMimeTypePattern is required for the uploadField else a NPE is thrown
- Closed
- relates to
-
MGNLUI-6390 allowedMimeTypePattern property doesn't work as expected
- Closed