本文主要是介绍Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extens,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错:
[2022-01-10 08:41:12] local.ERROR: Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?). {"exception":"[object] (Symfony\\Component\\Mime\\Exception\\LogicException(code: 0): Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?). at /www/wwwroot/sc_backstage/vendor/symfony/mime/MimeTypes.php:140)
1.检查是否安装fileinfo(我这里用的是宝塔)
2.开启fileinfo扩展
php.ini中,将extension=fileinfo前面的分号去掉
这篇关于Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extens的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!