laravel 上传图片报错Unable to guess the mime type as no guessers are available (Did you enable the php_fil

使用laravel-admin上传图片时报错,

Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)

图片如下:

原因是没有开启php的php_fileinfo扩展,开启即可。

找到php.ini文件,搜索到php_fileinfo,去掉前面的分号,然后重启服务器即可

extension=php_fileinfo.dll

此文章为开发当中遇到问题记录

 

你可能感兴趣的:(laravel,laravel)