While uploading an image to the product gallery in magento backend product edit, I am getting the below error.

"We Dont Recognize or Support this File Extension type"

For all extension types i am getting the same error and I am getting product Upload call response as

"File was not uploaded" error code: 666

I have checked the pub/media folder permission and also ensured the allowed file extensions.

How to resolve this?

2 Answers 2


This may help you:

  • Check your /tmp dir space
  • Check it's permission

In following thread, you can find other possible reasons and its solution.

Magento 2 can not upload product images

Hope it helps.

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.