From f032460621b32e18c3d88bce74112b62751e9de6 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 16 Sep 2014 18:53:22 +0200 Subject: [PATCH] Fixed MIME retrieval for files --- src/Helpers/MimeHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/MimeHelper.php b/src/Helpers/MimeHelper.php index ed0ccd62..5c538bdc 100644 --- a/src/Helpers/MimeHelper.php +++ b/src/Helpers/MimeHelper.php @@ -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)