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?