forked from extern/egroupware
Use abstraction to determine mime type, see 9a398594ac
This commit is contained in:
parent
146785d57a
commit
816db05496
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user