Fixed MIME retrieval for files
This commit is contained in:
parent
ef451d93ac
commit
f032460621
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue