Steps to reproduce
Create a blog post without image Save or...
Create a blog post including image Save Open up for editing Save it again
Expected result
Blog post should save the updates Actual result Magento throws an exception "The file was not uploaded." So basically the module always expects a new image to be attached to a post even if there already has been uploaded an image to it.
Exception:
Exception #0 (Exception): The file was not uploaded. #1 Magento\MediaStorage\Model\File\Uploader->__construct('image', &Magento\MediaStorage\Helper\File\Storage\Database#0000000060cfa2ea000000004348112d#, &Magento\MediaStorage\Helper\File\Storage#0000000060cfa511000000004348112d#, &Magento\MediaStorage\Model\File\Validator\NotProtectedExtension#0000000060cfa510000000004348112d#) called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111]
-
1Have you fix it?Dhaduk Mitesh– Dhaduk Mitesh2020年07月25日 11:17:57 +00:00Commented Jul 25, 2020 at 11:17
-
Yes please check answer. That worked for mePrasad D. Warnakulasuriya– Prasad D. Warnakulasuriya2020年07月26日 15:59:47 +00:00Commented Jul 26, 2020 at 15:59
-
Can you send mageplaza blog module link?Dhaduk Mitesh– Dhaduk Mitesh2020年07月27日 09:33:53 +00:00Commented Jul 27, 2020 at 9:33
1 Answer 1
To solve your problem, please download and replace attach files:
Media.php: Mageplaza/Core/Helper/Media.php
Please check it again, you will see it work normally.