Use abstraction to determine mime type, see 9a398594ac

This commit is contained in:
nathangray 2018-02-15 10:16:04 -07:00
parent 146785d57a
commit 816db05496

View File

@ -150,7 +150,7 @@ class File extends Etemplate\Widget
// Don't trust what the browser tells us for mime
if(function_exists('mime_content_type'))
{
$file['type'] = $type = mime_content_type($file['tmp_name']);
$file['type'] = $type = Api\MimeMagic::analyze_file($file['tmp_name']);
}
// Mime check