check filename extension by lowercased version of itself
This commit is contained in:
parent
06426bdfe6
commit
65ce0ff4e4
1 changed files with 1 additions and 0 deletions
|
@ -513,6 +513,7 @@ function getMimeType($file, $ext="") {
|
|||
if ($type !== false && strlen($type) > 0) return $type;
|
||||
|
||||
// Otherwise do it the old fashioned way
|
||||
$ext = strtolower($ext);
|
||||
static $exts = array(
|
||||
'jpg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png',
|
||||
'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'ico' => 'image/x-icon',
|
||||
|
|
Reference in a new issue