Upload
Upload copied to clipboard
finfo.php not found
Hi, I am getting following issue finfo.php not found which is being called from FileInfo->getMimetype()
I'm not getting emails from this repo for some reason, so I didn't get an email about this. I'll look into the issue.
Oh i see, Hope it will be solved soon.
You need at least php 5.3 (http://php.net/manual/en/fileinfo.installation.php). Or php_fileinfo extension.
Class 'finfo' not found when trying to upload a file
Fatal error: Class 'finfo' not found in /vendor/codeguy/upload/src/Upload/File.php on line 203
Shared hosting, PHP 5.6.14, --enable-fileinfo=shared
What could be the problem?
EDIT: It seems adding extension=fileinfo.so to a php.ini in the app directory solves it.
Run php --ini
in a console and open target Loaded Configuration File: path\php.ini
, Enable php_fileinfo.dll
and restart your server.