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)