-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Magento 2.3.2] Upload fails in image uploader #24332
Comments
Hi @posttechguy. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @posttechguy do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-Charlie. Thank you for working on this issue.
|
Hello @posttechguy thank you for your report! I'm not able to reproduce issue on clean Magento 2.3.2 . Manual testing scenario: Actual result: So i have to close this issue. If you have more info please update your issue. |
Hi @engcom-Charlie I can confirm that the file upload does not work on 2.3-develop. The reason is that the I have tried it on PHP 7.2.16 also Bevan |
I have also found this bug, on PHP 7.2.16 Fatal error: Uncaught Error: Call to undefined function mime_content_type() in /vagrant/httpdocs/m23-dev/app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php:362 Stack trace: #0 /vagrant/httpdocs/m23-dev/app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Content/Files.php(60): Magento\Cms\Model\Wysiwyg\Images\Storage->getFilesCollection('/vagrant/httpdo...', 'image') #1 /vagrant/httpdocs/m23-dev/app/code/Magento/Cms/Block/Adminhtml/Wysiwyg/Images/Content/Files.php(74): Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Files->getFiles() #2 /vagrant/httpdocs/m23-dev/app/code/Magento/Cms/view/adminhtml/templates/browser/content/files.phtml(13): Magento\Cms\Block\Adminhtml\Wysiwyg\Images\Content\Files->getFilesCount() #3 /vagrant/httpdocs/m23-dev/lib/internal/Magento/Framework/View/TemplateEngine/Php.php(59): include('/vagrant/httpdo...') #4 /vagrant/httpdocs/m23-dev/lib/internal/Magento/Framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Cms\Block\Adminhtml\Wysiwyg\Im in /vagrant/httpdocs/m23-dev/app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php on line 362 Again calling the removed function mime_content_type |
@posttechguy sorry but in my Magento 2.3.2 instance all works fine: |
This is a duplicate of #16531 (comment) @posttechguy: installing the In my opinion the Interested in creating a pull request for this? |
Thanks @hostep, that was my issue. I have added a PR for the issue Cheers |
Adding the fileinfo extension fixed my issue too. This should be added to the requirements page: |
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@magento give me 2.3-develop instance |
Hi @krisdante. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @krisdante, here is your Magento instance. |
✅ Confirmed by @engcom-Alfa Issue Available: @engcom-Alfa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @posttechguy. Thank you for your report.
The fix will be available with the upcoming 2.4.2 release. |
Preconditions:
Magento 2.4-develop
Php 7.3
fileinfo php extension is disabled
Steps to reproduce:
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
The text was updated successfully, but these errors were encountered: