Fixed MIME retrieval for files

This commit is contained in:
Marcin Kurczewski 2014-09-16 18:53:22 +02:00
parent ef451d93ac
commit f032460621

View file

@ -6,7 +6,7 @@ class MimeHelper
public static function getMimeTypeFromFile($path)
{
$finfo = new \finfo(FILEINFO_MIME);
return self::stripCharset($finfo->load($path));
return self::stripCharset($finfo->file($path));
}
public static function getMimeTypeFromBuffer($buffer)