brandonsavage / Upload

File uploads with validation and storage strategies
MIT License
1.67k stars 315 forks source link

finfo.php not found #69

Open Hayat-Umar opened 8 years ago

Hayat-Umar commented 8 years ago

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

brandonsavage commented 8 years ago

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.

Hayat-Umar commented 8 years ago

Oh i see, Hope it will be solved soon.

dstuecken commented 8 years ago

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

Shrayyef commented 8 years ago

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

Sithdown commented 8 years ago

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.

akoSalman commented 7 years ago

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