Skip to content

[Magento 2.3.2] Upload fails in image uploader #24332

Closed
@posttechguy

Description

@posttechguy

Preconditions:
Magento 2.4-develop
Php 7.3
fileinfo php extension is disabled

Steps to reproduce:

  1. Go to Admin -> Content -> Pages;
  2. Open "Home Page" to edit (for ex.);
  3. Expand the Content tab;
  4. Select the image uploader ("Insert Image" button or the one in the editor);
  5. Select an image from your HD and upload it.

Actual Result: ✖️ Error: Call to undefined function mime_content_type()

✖️ An error is shown: "File validation failed." No image is uploaded.

Screenshot from 2020-09-08 10-59-21

Expected Result: ✔️ An image must be uploaded without errors

Screenshot from 2020-09-18 15-54-24

The temp uploaded file, i.e., '/tmp/sdfds5we23e', which has no extension, is trying to get the extension thus failing to verify against the validTypes array

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/WysiwygFixed 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: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions