Skip to content

"Select from Gallery" option on media file uploader does not use correct allowable file types #23881

@gwharton

Description

@gwharton

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 ".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 #25007

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ThemeEvent: cdwebkulWebkul Contribution DayFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.stale issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions