From 412dcd05af60b3c36f87b07ff7dfcc3ab0b139f4 Mon Sep 17 00:00:00 2001 From: velocity37 Date: Sun, 23 Sep 2012 14:12:24 -0700 Subject: [PATCH] Add video MIME types --- core/util.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 5d74163e..0f89142d 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -545,7 +545,8 @@ function getMimeType($file, $ext="") { 'xml' => 'text/xml', 'xsl' => 'application/xsl+xml', 'ogg' => 'application/ogg', 'mp3' => 'audio/mpeg', 'wav' => 'audio/x-wav', 'avi' => 'video/x-msvideo', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg', - 'mov' => 'video/quicktime', 'flv' => 'video/x-flv', 'php' => 'text/x-php' + 'mov' => 'video/quicktime', 'flv' => 'video/x-flv', 'php' => 'text/x-php + 'mp4' => 'video/mp4', 'ogv' => 'video/ogg', 'webm' => 'video/webm' ); return isset($exts[$ext]) ? $exts[$ext] : 'application/octet-stream'; }