Upload icon indicating copy to clipboard operation
Upload copied to clipboard

finfo.php not found

Open Hayat-Umar opened this issue 9 years ago • 6 comments

Hi, I am getting following issue finfo.php not found which is being called from FileInfo->getMimetype()

Hayat-Umar avatar Sep 21 '15 16:09 Hayat-Umar

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.

brandonsavage avatar Oct 04 '15 17:10 brandonsavage

Oh i see, Hope it will be solved soon.

Hayat-Umar avatar Oct 07 '15 13:10 Hayat-Umar

You need at least php 5.3 (http://php.net/manual/en/fileinfo.installation.php). Or php_fileinfo extension.

dstuecken avatar Oct 25 '15 20:10 dstuecken

Class 'finfo' not found when trying to upload a file

Shrayyef avatar Nov 05 '15 20:11 Shrayyef

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.

Sithdown avatar Nov 10 '15 16:11 Sithdown

Run php --ini in a console and open target Loaded Configuration File: path\php.ini, Enable php_fileinfo.dll and restart your server.

akoSalman avatar Sep 02 '17 08:09 akoSalman