我使用的是一个共享主机,在上传图片时我遇到了这个错误。我在CPanel中选中了fileinfo复选框,但仍然有这个错误。我使用的是laravel 7和php 7.3以及Intervention 2.5。
必须安装/启用PHP Fileinfo扩展才能使用干预图像
发布于 2021-04-17 15:39:09
我将这些代码添加到.htacess文件中,这是我工作
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
</IfModule>https://stackoverflow.com/questions/67070215
复制相似问题