summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-03 12:18:28 -0500
committerDavid Rothstein <drothstein@gmail.com>2014-11-03 12:18:28 -0500
commit8cf521c61c62a30d3d2636502f70e6ea26d3200a (patch)
tree05e0219fea1d36b8021a96eab9b8647cd196c57b /includes
parentf609f390af91ccbad813134d0eb0b054e85dc1c5 (diff)
downloadbrdo-8cf521c61c62a30d3d2636502f70e6ea26d3200a.tar.gz
brdo-8cf521c61c62a30d3d2636502f70e6ea26d3200a.tar.bz2
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().
Diffstat (limited to 'includes')
-rw-r--r--includes/file.mimetypes.inc20
1 files changed, 20 insertions, 0 deletions
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,
),
);
}