简体   繁体   中英

Error while uploading image through Laravel 7.0

I am trying to upload image but it gives me following error

在此处输入图像描述

I've also added extension=php_fileinfo.dll in my php.ini file but still it gives me the same error as above image. How can I solve it?

You may have edited the wrong php.ini file, as some environments can have multiple php.ini files due to different configurations of PHP. To check to see if the PHP version you are using is actually loading the extension, you can type php -m within your project terminal to see loaded modules, alternatively you can dd(get_loaded_extensions()); within your PHP somewhere to see similar results.

If your extension is not loaded, it most likely means you have edited the wrong file. Therefore you can type php --ini within your project terminal and check for the Loaded Configuration File . This is the php.ini file used by your CLI. Make sure the extension is uncommented within that file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM