Skip to content

[Magento 2.2.5 - 2.3.x] Upload fails in image uploader #16531

Closed
@mdesplenter

Description

@mdesplenter

Additional Triage information

Summary
When uploading an image in the uploader, the error "File validation failed." is shown. This error appeared after updating to 2.2.5.

Preconditions
PHP Version 7.0.1
Magento ver. 2.2.5
Make function "mime_content_type" undefined

Steps to reproduce

  1. Edit a block
  2. Select the image uploader ("Insert Image" button or the one in the editor)
  3. Select an image from your hd and upload it.

Expected result
An added image in the gallery

Actual result
An error is shown: "File validation failed." No image is uploaded.

I tried different kind of filetypes. In 2.2.4 and previous versions there was no problem, the only thing that changed is the updated version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/FileEvent: dmcdindia1Fixed 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 developmentProgress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions