Laravel干预/图像在我的主机上不起作用

Laravel干预/图像在我的主机上不起作用,laravel,Laravel,我正在为laravel使用干预/图像,并在主机中上载laravel项目,但未上载图像 但是,我的主机中的PHP Fileinfo将启用并使用PHP 5.4版 错误文本: "error":{"type":"LogicException","message":"Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)","file":"\/home

我正在为laravel使用干预/图像,并在主机中上载laravel项目,但未上载图像

但是,我的主机中的PHP Fileinfo将启用并使用PHP 5.4版

错误文本:

"error":{"type":"LogicException","message":"Unable to guess the mime type as no 
guessers are available (Did you enable the php_fileinfo 
extension?)","file":"\/home\/investi1\/vendor\/symfony\/http-
foundation\/Symfony\/Component\/HttpFoundation\/File\/MimeType\/MimeTypeGuesser.
php","line":127}
控制器:

$image = Input::file('file');
        $destinationPath = 'uploads/gallery';
        $filename =  $image->getClientOriginalName();
        $extension =$image->getClientOriginalExtension();
        $image_filename = sha1($filename).'-'.rand(0,1000).'.'.$extension;
        $image_uploadSuccess = $image->move($destinationPath, $image_filename);

        $img = Image::make($destinationPath.'/'.$image_filename);
        $img->resize(150, null, function ($constraint) {
            $constraint->aspectRatio();
        })->save($destinationPath.'/tumb/'.$image_filename,70);

        $img_gallery = new ImageGallery;
        $img_gallery->user_id = Sentry::getUser()->id;
        $img_gallery->lang = Security::xss_clean(Input::get('lang'));
        $img_gallery->description = Security::xss_clean(Input::get('description'));
        $img_gallery->cat_id = Security::xss_clean(Input::get('category'));
        $img_gallery->image = $image_filename;
        $img_gallery->created_at = jDate::forge()->time();

        if( $image_uploadSuccess ) {
            $img_gallery->save();
            return Response::json('success', 200);
        } else {
            return Response::json('error', 400);
        } 

启用PHP扩展名
PHP_fileinfo
,要执行此操作,请查找
PHP.ini
文件并取消注释,如下行

; windows
extension=php_fileinfo.dll


启用PHP扩展名
PHP_fileinfo
,要执行此操作,请查找
PHP.ini
文件并取消注释,如下行

; windows
extension=php_fileinfo.dll


启用PHP扩展名
PHP_fileinfo
,要执行此操作,请查找
PHP.ini
文件并取消注释,如下行

; windows
extension=php_fileinfo.dll


启用PHP扩展名
PHP_fileinfo
,要执行此操作,请查找
PHP.ini
文件并取消注释,如下行

; windows
extension=php_fileinfo.dll



请提供您用于图像上载的一些代码。您是否确定启用了
php_fileinfo
?请尝试使用phpinfo()仔细检查php_fileinfo是否已实际启用,或者在编辑php.ini文件后重新启动apache我使用的是主机共享且没有根访问权限,但是php fileinfo已启用请提供一些用于图像上载的代码。您是否确定启用了
php\u fileinfo
?请尝试使用phpinfo()双重检查php\u fileinfo是否实际启用,或者在编辑php.ini文件后重新启动apache我使用的是主机共享且没有根访问权限,但是php fileinfo已启用请提供一些用于图像上载的代码。您是否确定启用了
php\u fileinfo
?请尝试使用phpinfo()双重检查php\u fileinfo是否实际启用,或者在编辑php.ini文件后重新启动apache我使用的是主机共享且没有根访问权限,但是php fileinfo已启用请提供一些用于图像上载的代码。您是否确定启用了
php\u fileinfo
?请尝试使用phpinfo()双重检查php\u fileinfo是否实际启用,或者在编辑php.ini文件后重新启动apache我使用的是主机共享且没有根访问权限,但是php fileinfo启用了我使用的是主机共享,没有根访问权限,但是php fileinfo启用了Hello,我已经在XAMPP本地中取消了对该行的注释。共享主机怎么样?因为我对在cpanel共享主机中实现感到困惑?使用了哪个主机提供程序?我使用的是主机共享,没有根访问权限,但php fileinfo启用了Hello,所以我取消了XAMPP local中的行注释。共享主机怎么样?因为我对在cpanel共享主机中实现感到困惑?使用了哪个主机提供程序?我使用的是主机共享,没有根访问权限,但php fileinfo启用了Hello,所以我取消了XAMPP local中的行注释。共享主机怎么样?因为我对在cpanel共享主机中实现感到困惑?使用了哪个主机提供程序?我使用的是主机共享,没有根访问权限,但php fileinfo启用了Hello,所以我取消了XAMPP local中的行注释。共享主机怎么样?因为我混淆了在cpanel中实现共享托管?使用哪个托管提供程序?