Closed
Description
Preconditions:
Magento 2.4-develop
Php 7.3
fileinfo php extension is disabled
Steps to reproduce:
- Go to Admin -> Content -> Pages;
- Open "Home Page" to edit (for ex.);
- Expand the Content tab;
- Select the image uploader ("Insert Image" button or the one in the editor);
- 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.
Expected Result: ✔️ An image must be uploaded without errors
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
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentMay be fixed according to the position in the backlog.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.