magento2: "Select from Gallery" option on media file uploader does not use correct allowable file types
Preconditions (*)
- Magento 2.4-develop vanilla
Steps to reproduce (*)
- Content -> Configuration
- Global -> Edit
- HTML Head -> Favicon icon
- Select from Gallery
- Choose Files
- Select “<anyfile>.ico” from local filesystem
Expected result (*)
- icon file is successfully uploaded
Actual result (*)
- Error “We don’t recognize or support this file extension type.” is reported
Investigation
Allowed file types is stated “JPG, GIF, PNG, ICO, APNG” on design config webpage Open Browser Dev tools and monitor network traffic when hitting “Select from Gallery” button. Inspect inital ajax request’s response back from server
allowedExtensions = 'jpg jpeg png gif';
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
May be fixed https://github.com/magento/magento2/pull/25007
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (14 by maintainers)
Commits related to this issue
- fixed issue #23881 — committed to sagarwebkul/magento2 by sagarwebkul 5 years ago
- fixed issue #23881 — committed to sagarwebkul/magento2 by sagarwebkul 5 years ago
- fixed issue #23881 — committed to sagarwebkul/magento2 by sagarwebkul 5 years ago
@ihor-sviziev it was closed by mistake due to the issue with automation. Now it’s resolved, Issue re-opened