Trying to upload an image via a script based on Laravel framework and coming across this error:
Call to undefined function Intervention\Image\finfo_buffer()
* Checks if string contains binary image data
*
* @param mixed $input
* @return boolean
*/
private function isBinary($input)
{
$mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), (string) $input);
return substr($mime, 0, 4) != 'text';
}
I'm not really that well versed on Laravel so would appreciate some help.
Regards
You need fileinfo extension enabled for your PHP. See Call to undefined function Intervention\Image\finfo_buffer().
olivervogel commented on May 20:
ext-fileinfo is now required for installation.
Check your php.ini file to see if something along the line of extension=php_fileinfo.dll
or extension=fileinfo.so
is commented out. If so uncomment it and restart your web server.