From 8cf521c61c62a30d3d2636502f70e6ea26d3200a Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 3 Nov 2014 12:18:28 -0500 Subject: Issue #1443070 by CrashTest_, bluegriff | Dave Reid: Added support for popular e-book formats, Google web formats, mkv and mka in file_default_mimetype_mapping(). --- includes/file.mimetypes.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'includes') diff --git a/includes/file.mimetypes.inc b/includes/file.mimetypes.inc index 7468a60af..5a1615871 100644 --- a/includes/file.mimetypes.inc +++ b/includes/file.mimetypes.inc @@ -43,6 +43,7 @@ function file_default_mimetype_mapping() { 4 => 'application/cap', 5 => 'application/cu-seeme', 6 => 'application/dsptype', + 350 => 'application/epub+zip', 7 => 'application/hta', 8 => 'application/java-archive', 9 => 'application/java-serialized-object', @@ -64,6 +65,7 @@ function file_default_mimetype_mapping() { 25 => 'application/rss+xml', 26 => 'application/rtf', 27 => 'application/smil', + 349 => 'application/vnd.amazon.ebook', 28 => 'application/vnd.cinderella', 29 => 'application/vnd.google-earth.kml+xml', 30 => 'application/vnd.google-earth.kmz', @@ -183,6 +185,8 @@ function file_default_mimetype_mapping() { 144 => 'application/x-lzx', 145 => 'application/x-maker', 146 => 'application/x-mif', + 351 => 'application/x-mobipocket-ebook', + 352 => 'application/x-mobipocket-ebook', 147 => 'application/x-ms-wmd', 148 => 'application/x-ms-wmz', 149 => 'application/x-msdos-program', @@ -228,8 +232,10 @@ function file_default_mimetype_mapping() { 188 => 'audio/mpeg', 189 => 'audio/ogg', 190 => 'audio/prs.sid', + 356 => 'audio/webm', 191 => 'audio/x-aiff', 192 => 'audio/x-gsm', + 354 => 'audio/x-matroska', 193 => 'audio/x-mpegurl', 194 => 'audio/x-ms-wax', 195 => 'audio/x-ms-wma', @@ -301,6 +307,7 @@ function file_default_mimetype_mapping() { 261 => 'image/vnd.djvu', 262 => 'image/vnd.microsoft.icon', 263 => 'image/vnd.wap.wbmp', + 355 => 'image/webp', 264 => 'image/x-cmu-raster', 265 => 'image/x-coreldraw', 266 => 'image/x-coreldrawpattern', @@ -337,6 +344,7 @@ function file_default_mimetype_mapping() { 297 => 'text/vnd.sun.j2me.app-descriptor', 298 => 'text/vnd.wap.wml', 299 => 'text/vnd.wap.wmlscript', + 358 => 'text/vtt', 300 => 'text/x-bibtex', 301 => 'text/x-boo', 302 => 'text/x-c++hdr', @@ -371,9 +379,11 @@ function file_default_mimetype_mapping() { 331 => 'video/ogg', 332 => 'video/quicktime', 333 => 'video/vnd.mpegurl', + 357 => 'video/webm', 347 => 'video/x-flv', 334 => 'video/x-la-asf', 348 => 'video/x-m4v', + 353 => 'video/x-matroska', 335 => 'video/x-mng', 336 => 'video/x-ms-asf', 337 => 'video/x-ms-wm', @@ -854,6 +864,16 @@ function file_default_mimetype_mapping() { 'f4b' => 346, 'flv' => 347, 'm4v' => 348, + 'azw' => 349, + 'epub' => 350, + 'mobi' => 351, + 'prc' => 352, + 'mkv' => 353, + 'mka' => 354, + 'webp' => 355, + 'weba' => 356, + 'webm' => 357, + 'vtt' => 358, ), ); } -- cgit v1.2.3