0

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]

3
  • 1
    Have you fix it? Commented Jul 25, 2020 at 11:17
  • Yes please check answer. That worked for me Commented Jul 26, 2020 at 15:59
  • Can you send mageplaza blog module link? Commented Jul 27, 2020 at 9:33

1 Answer 1

1

To solve your problem, please download and replace attach files:

Media.php: Mageplaza/Core/Helper/Media.php

Media.zip

Please check it again, you will see it work normally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.