magento2: "Select from Gallery" option on media file uploader does not use correct allowable file types

Preconditions (*)

  1. Magento 2.4-develop vanilla

Steps to reproduce (*)

  1. Content -> Configuration
  2. Global -> Edit
  3. HTML Head -> Favicon icon
  4. Select from Gallery
  5. Choose Files
  6. Select “<anyfile>.ico” from local filesystem

Expected result (*)

  1. icon file is successfully uploaded

Actual result (*)

  1. Error “We don’t recognize or support this file extension type.” is reported Peek 2020-08-31 13-22

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

Most upvoted comments

@ihor-sviziev it was closed by mistake due to the issue with automation. Now it’s resolved, Issue re-opened