Fatal error: Uncaught Error: Call to undefined function mime_content_type() in when trying to upload image from admin blocks.
Please check screenshot enter image description here

  • Do you have any custom module ? Which might be conflicting with app/code/Magento/Cms/etc/di.xml – Aditya Shah Jan 19 at 12:38
  • no there is "no" custom module which is conflicting app/code/Magento/Cms/etc/di.xml – sumeet bajaj Jan 19 at 13:25
  • 2
    You will need to enable php fileinfo extension. – user77378 Feb 26 at 14:37
  • ok i will check and let you know – sumeet bajaj Feb 26 at 14:56
  • enabling fileinfo extension helped me Thanks. – Dhaval Solanki Jun 15 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.