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]

Barry
5871 gold badge5 silver badges22 bronze badges
asked Feb 17, 2020 at 6:02
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.

Mohit Patel
4,0484 gold badges27 silver badges57 bronze badges
answered Feb 17, 2020 at 6:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.