MediaWiki
master
Toggle main menu visibility
MimeMap.php
Go to the documentation of this file.
1
<?php
6
7
namespace
Wikimedia\Mime;
8
15
class
MimeMap
{
17
public
const
MIME_EXTENSIONS = [
18
'application/ogg'
=> [
'ogx'
,
'ogg'
,
'ogm'
,
'ogv'
,
'oga'
,
'spx'
,
'opus'
],
19
'application/pdf'
=> [
'pdf'
],
20
'application/vnd.apple.mpegurl'
=> [
'm3u8'
,
'm3u'
],
21
'application/vnd.ms-opentype'
=> [
'otf'
],
22
'application/vnd.oasis.opendocument.chart'
=> [
'odc'
],
23
'application/vnd.oasis.opendocument.chart-template'
=> [
'otc'
],
24
'application/vnd.oasis.opendocument.database'
=> [
'odb'
],
25
'application/vnd.oasis.opendocument.formula'
=> [
'odf'
],
26
'application/vnd.oasis.opendocument.formula-template'
=> [
'otf'
],
27
'application/vnd.oasis.opendocument.graphics'
=> [
'odg'
],
28
'application/vnd.oasis.opendocument.graphics-template'
=> [
'otg'
],
29
'application/vnd.oasis.opendocument.image'
=> [
'odi'
],
30
'application/vnd.oasis.opendocument.image-template'
=> [
'oti'
],
31
'application/vnd.oasis.opendocument.presentation'
=> [
'odp'
],
32
'application/vnd.oasis.opendocument.presentation-template'
=> [
'otp'
],
33
'application/vnd.oasis.opendocument.spreadsheet'
=> [
'ods'
],
34
'application/vnd.oasis.opendocument.spreadsheet-template'
=> [
'ots'
],
35
'application/vnd.oasis.opendocument.text'
=> [
'odt'
],
36
'application/vnd.oasis.opendocument.text-master'
=> [
'otm'
,
'odm'
],
37
'application/vnd.oasis.opendocument.text-template'
=> [
'ott'
],
38
'application/vnd.oasis.opendocument.text-web'
=> [
'oth'
],
39
'application/javascript'
=> [
'js'
],
40
'application/x-mpegurl'
=> [
'm3u'
,
'm3u8'
],
41
'application/x-shockwave-flash'
=> [
'swf'
],
42
'audio/midi'
=> [
'mid'
,
'midi'
,
'kar'
],
43
'audio/mpeg'
=> [
'mpga'
,
'mpa'
,
'mp2'
,
'mp3'
],
44
'audio/x-aiff'
=> [
'aif'
,
'aiff'
,
'aifc'
],
45
'audio/x-wav'
=> [
'wav'
],
46
'audio/ogg'
=> [
'oga'
,
'spx'
,
'ogg'
,
'opus'
],
47
'audio/opus'
=> [
'opus'
,
'ogg'
,
'oga'
,
'spx'
],
48
'image/x-bmp'
=> [
'bmp'
],
49
'image/gif'
=> [
'gif'
],
50
'image/jpeg'
=> [
'jpeg'
,
'jpg'
,
'jpe'
,
'jps'
],
51
'image/png'
=> [
'png'
,
'apng'
],
52
'image/svg+xml'
=> [
'svg'
],
53
'image/svg'
=> [
'svg'
],
54
'image/tiff'
=> [
'tiff'
,
'tif'
],
55
'image/vnd.djvu'
=> [
'djvu'
,
'djv'
],
56
'image/x.djvu'
=> [
'djvu'
],
57
'image/x-djvu'
=> [
'djvu'
],
58
'image/x-portable-pixmap'
=> [
'ppm'
],
59
'image/x-xcf'
=> [
'xcf'
],
60
'text/plain'
=> [
'txt'
],
61
'text/html'
=> [
'html'
,
'htm'
],
62
'video/ogg'
=> [
'ogv'
,
'ogm'
,
'ogg'
],
63
'video/mpeg'
=> [
'mpg'
,
'mpeg'
,
'mpe'
],
64
'application/acad'
=> [
'dwg'
],
65
'application/andrew-inset'
=> [
'ez'
],
66
'application/mac-binhex40'
=> [
'hqx'
],
67
'application/mac-compactpro'
=> [
'cpt'
],
68
'application/mathml+xml'
=> [
'mathml'
],
69
'application/msword'
=> [
'doc'
,
'dot'
],
70
'application/octet-stream'
=> [
'bin'
,
'dms'
,
'lha'
,
'lzh'
,
'exe'
,
'class'
,
'so'
,
'dll'
],
71
'application/oda'
=> [
'oda'
],
72
'application/postscript'
=> [
'ai'
,
'eps'
,
'ps'
],
73
'application/rdf+xml'
=> [
'rdf'
,
'owl'
],
74
'application/smil'
=> [
'smi'
,
'smil'
],
75
'application/srgs'
=> [
'gram'
],
76
'application/srgs+xml'
=> [
'grxml'
],
77
'application/vnd.mif'
=> [
'mif'
],
78
'application/vnd.ms-excel'
=> [
'xls'
,
'xlt'
,
'xla'
],
79
'application/vnd.ms-powerpoint'
=> [
'ppt'
,
'pot'
,
'pps'
,
'ppa'
],
80
'application/vnd.wap.wbxml'
=> [
'wbxml'
],
81
'application/vnd.wap.wmlc'
=> [
'wmlc'
],
82
'application/vnd.wap.wmlscriptc'
=> [
'wmlsc'
],
83
'application/voicexml+xml'
=> [
'vxml'
],
84
'application/x-7z-compressed'
=> [
'7z'
],
85
'application/x-bcpio'
=> [
'bcpio'
],
86
'application/x-bzip'
=> [
'bz'
],
87
'application/x-bzip2'
=> [
'bz2'
],
88
'application/x-cdlink'
=> [
'vcd'
],
89
'application/x-chess-pgn'
=> [
'pgn'
],
90
'application/x-cpio'
=> [
'cpio'
],
91
'application/x-csh'
=> [
'csh'
],
92
'application/x-dia-diagram'
=> [
'dia'
],
93
'application/x-director'
=> [
'dcr'
,
'dir'
,
'dxr'
],
94
'application/x-dvi'
=> [
'dvi'
],
95
'application/x-futuresplash'
=> [
'spl'
],
96
'application/x-gtar'
=> [
'gtar'
,
'tar'
],
97
'application/x-gzip'
=> [
'gz'
],
98
'application/x-hdf'
=> [
'hdf'
],
99
'application/x-jar'
=> [
'jar'
],
100
'application/json'
=> [
'json'
],
101
'application/x-koan'
=> [
'skp'
,
'skd'
,
'skt'
,
'skm'
],
102
'application/x-latex'
=> [
'latex'
],
103
'application/x-netcdf'
=> [
'nc'
,
'cdf'
],
104
'application/x-sh'
=> [
'sh'
],
105
'application/x-shar'
=> [
'shar'
],
106
'application/x-stuffit'
=> [
'sit'
],
107
'application/x-sv4cpio'
=> [
'sv4cpio'
],
108
'application/x-sv4crc'
=> [
'sv4crc'
],
109
'application/x-tar'
=> [
'tar'
],
110
'application/x-tcl'
=> [
'tcl'
],
111
'application/x-tex'
=> [
'tex'
],
112
'application/x-texinfo'
=> [
'texinfo'
,
'texi'
],
113
'application/x-troff'
=> [
't'
,
'tr'
,
'roff'
],
114
'application/x-troff-man'
=> [
'man'
],
115
'application/x-troff-me'
=> [
'me'
],
116
'application/x-troff-ms'
=> [
'ms'
],
117
'application/x-ustar'
=> [
'ustar'
],
118
'application/x-wais-source'
=> [
'src'
],
119
'application/x-xpinstall'
=> [
'xpi'
],
120
'application/xhtml+xml'
=> [
'xhtml'
,
'xht'
],
121
'application/xslt+xml'
=> [
'xslt'
],
122
'application/xml'
=> [
'xml'
,
'xsl'
,
'xsd'
,
'kml'
],
123
'application/xml-dtd'
=> [
'dtd'
],
124
'application/zip'
=>
125
[
'zip'
,
'jar'
,
'xpi'
,
'sxc'
,
'stc'
,
'sxd'
,
'std'
,
'sxi'
,
'sti'
,
'sxm'
,
'stm'
,
'sxw'
,
'stw'
],
126
'application/x-rar'
=> [
'rar'
],
127
'font/collection'
=> [
'ttc'
],
128
'font/otf'
=> [
'ttf'
,
'otf'
],
129
'font/sfnt'
=> [
'ttf'
,
'otf'
],
130
'font/ttf'
=> [
'ttf'
,
'otf'
],
131
'application/font-sfnt'
=> [
'ttf'
],
132
'font/woff'
=> [
'woff'
],
133
'application/font-woff'
=> [
'woff'
],
134
'font/woff2'
=> [
'woff2'
],
135
'application/font-woff2'
=> [
'woff2'
],
136
'application/vnd.ms-fontobject'
=> [
'eot'
],
137
'application/x-font-ttf'
=> [
'ttf'
],
138
'audio/basic'
=> [
'au'
,
'snd'
],
139
'video/webm'
=> [
'webm'
],
140
'audio/webm'
=> [
'webm'
],
141
'audio/matroska'
=> [
'mka'
,
'mkv'
],
142
'audio/x-mpegurl'
=> [
'm3u'
],
143
'audio/x-ogg'
=> [
'oga'
,
'ogg'
,
'spx'
,
'opus'
],
144
'audio/x-pn-realaudio'
=> [
'ram'
,
'rm'
],
145
'audio/x-pn-realaudio-plugin'
=> [
'rpm'
],
146
'audio/x-realaudio'
=> [
'ra'
],
147
'audio/wav'
=> [
'wav'
],
148
'audio/x-flac'
=> [
'flac'
],
149
'audio/flac'
=> [
'flac'
],
150
'chemical/x-pdb'
=> [
'pdb'
],
151
'chemical/x-xyz'
=> [
'xyz'
],
152
'image/bmp'
=> [
'bmp'
],
153
'image/cgm'
=> [
'cgm'
],
154
'image/ief'
=> [
'ief'
],
155
'image/jp2'
=> [
'jp2'
,
'j2k'
,
'jpg2'
],
156
'image/jpx'
=> [
'jpf'
,
'jpx'
],
157
'image/jxl'
=> [
'jxl'
],
158
'image/vnd.microsoft.icon'
=> [
'ico'
],
159
'image/vnd.wap.wbmp'
=> [
'wbmp'
],
160
'image/webp'
=> [
'webp'
],
161
'image/x-cmu-raster'
=> [
'ras'
],
162
'image/x-icon'
=> [
'ico'
],
163
'image/x-jps'
=> [
'jps'
],
164
'image/x-ms-bmp'
=> [
'bmp'
],
165
'image/x-portable-anymap'
=> [
'pnm'
],
166
'image/x-portable-bitmap'
=> [
'pbm'
],
167
'image/x-portable-graymap'
=> [
'pgm'
],
168
'image/x-rgb'
=> [
'rgb'
],
169
'image/x-photoshop'
=> [
'psd'
],
170
'image/x-xbitmap'
=> [
'xbm'
],
171
'image/x-xpixmap'
=> [
'xpm'
],
172
'image/x-xwindowdump'
=> [
'xwd'
],
173
'model/iges'
=> [
'igs'
,
'iges'
],
174
'model/mesh'
=> [
'msh'
,
'mesh'
,
'silo'
],
175
'model/vrml'
=> [
'wrl'
,
'vrml'
],
176
'text/calendar'
=> [
'ics'
,
'ifb'
],
177
'text/css'
=> [
'css'
],
178
'text/csv'
=> [
'csv'
],
179
'text/richtext'
=> [
'rtx'
],
180
'text/rtf'
=> [
'rtf'
],
181
'text/sgml'
=> [
'sgml'
,
'sgm'
],
182
'text/tab-separated-values'
=> [
'tsv'
],
183
'text/vnd.wap.wml'
=> [
'wml'
],
184
'text/vnd.wap.wmlscript'
=> [
'wmls'
],
185
'text/xml'
=> [
'xml'
,
'xsl'
,
'xslt'
,
'rss'
,
'rdf'
],
186
'text/x-component'
=> [
'htc'
],
187
'text/x-less'
=> [
'less'
],
// T399672
188
'text/x-setext'
=> [
'etx'
],
189
'text/x-sawfish'
=> [
'jl'
],
190
'video/mp4'
=> [
'mp4'
,
'm4a'
,
'm4p'
,
'm4b'
,
'm4r'
,
'm4v'
],
191
'audio/mp4'
=> [
'm4a'
],
192
'video/quicktime'
=> [
'qt'
,
'mov'
],
193
'video/vnd.mpegurl'
=> [
'mxu'
],
194
'video/x-flv'
=> [
'flv'
],
195
'video/matroska'
=> [
'mkv'
,
'mka'
],
196
'video/x-msvideo'
=> [
'avi'
],
197
'video/x-ogg'
=> [
'ogv'
,
'ogm'
,
'ogg'
],
198
'video/x-sgi-movie'
=> [
'movie'
],
199
'x-conference/x-cooltalk'
=> [
'ice'
],
200
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
=> [
'docx'
],
201
'application/vnd.openxmlformats-officedocument.wordprocessingml.template'
=> [
'dotx'
],
202
'application/vnd.ms-word.document.macroenabled.12'
=> [
'docm'
],
203
'application/vnd.ms-word.template.macroenabled.12'
=> [
'dotm'
],
204
'application/vnd.openxmlformats-officedocument.presentationml.template'
=> [
'potx'
],
205
'application/vnd.openxmlformats-officedocument.presentationml.slideshow'
=> [
'ppsx'
],
206
'application/vnd.openxmlformats-officedocument.presentationml.presentation'
=> [
'pptx'
],
207
'application/vnd.ms-powerpoint.addin.macroenabled.12'
=> [
'ppam'
],
208
'application/vnd.ms-powerpoint.presentation.macroenabled.12'
=> [
'pptm'
,
'potm'
],
209
'application/vnd.ms-powerpoint.slideshow.macroenabled.12'
=> [
'ppsm'
],
210
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
=> [
'xlsx'
],
211
'application/vnd.openxmlformats-officedocument.spreadsheetml.template'
=> [
'xltx'
],
212
'application/vnd.ms-excel.sheet.macroenabled.12'
=> [
'xlsm'
],
213
'application/vnd.ms-excel.template.macroenabled.12'
=> [
'xltm'
],
214
'application/vnd.ms-excel.addin.macroenabled.12'
=> [
'xlam'
],
215
'application/vnd.ms-excel.sheet.binary.macroenabled.12'
=> [
'xlsb'
],
216
'model/gltf-binary'
=> [
'glb'
],
217
'model/gltf+json'
=> [
'gltf'
],
218
'model/vnd.dwfx+xps'
=> [
'dwfx'
],
219
'application/vnd.ms-xpsdocument'
=> [
'xps'
],
220
'chemical/x-mdl-molfile'
=> [
'mol'
],
221
'chemical/x-mdl-sdfile'
=> [
'sdf'
],
222
'chemical/x-mdl-rxnfile'
=> [
'rxn'
],
223
'chemical/x-mdl-rdfile'
=> [
'rd'
],
224
'chemical/x-mdl-rgfile'
=> [
'rg'
],
225
'application/x-amf'
=> [
'amf'
],
226
'application/sla'
=> [
'stl'
],
227
'application/wasm'
=> [
'wasm'
],
228
229
// Vague pseudo-types should be at the end so that they don't take
230
// precedence over the more specific types above in getMimeTypesFromExtension()
231
'application/x-opc+zip'
=> [
232
'docx'
,
'dotx'
,
'docm'
,
'dotm'
,
'potx'
,
'ppsx'
,
'pptx'
,
'ppam'
,
'pptm'
,
'potm'
,
'ppsm'
,
233
'xlsx'
,
'xltx'
,
'xlsm'
,
'xltm'
,
'xlam'
,
'xlsb'
,
'dwfx'
,
'xps'
234
],
235
'application/vnd.oasis.opendocument'
=> [
236
'odt'
,
'ott'
,
'odg'
,
'otg'
,
'odp'
,
'otp'
,
'ods'
,
'ots'
,
'odc'
,
'otc'
,
237
'odi'
,
'oti'
,
'odf'
,
'otf'
,
'odm'
,
'oth'
,
238
]
239
];
240
242
public
const
MEDIA_TYPES = [
243
MEDIATYPE_OFFICE
=> [
244
'application/pdf'
,
245
'application/vnd.oasis.opendocument.chart'
,
246
'application/vnd.oasis.opendocument.chart-template'
,
247
'application/vnd.oasis.opendocument.database'
,
248
'application/vnd.oasis.opendocument.formula'
,
249
'application/vnd.oasis.opendocument.formula-template'
,
250
'application/vnd.oasis.opendocument.graphics'
,
251
'application/vnd.oasis.opendocument.graphics-template'
,
252
'application/vnd.oasis.opendocument.image'
,
253
'application/vnd.oasis.opendocument.image-template'
,
254
'application/vnd.oasis.opendocument.presentation'
,
255
'application/vnd.oasis.opendocument.presentation-template'
,
256
'application/vnd.oasis.opendocument.spreadsheet'
,
257
'application/vnd.oasis.opendocument.spreadsheet-template'
,
258
'application/vnd.oasis.opendocument.text'
,
259
'application/vnd.oasis.opendocument.text-template'
,
260
'application/vnd.oasis.opendocument.text-master'
,
261
'application/vnd.oasis.opendocument.text-web'
,
262
'application/pdf'
,
263
'application/acrobat'
,
264
'application/msword'
,
265
'application/vnd.ms-excel'
,
266
'application/vnd.ms-powerpoint'
,
267
'application/x-director'
,
268
'image/vnd.djvu'
,
269
'image/x.djvu'
,
270
'image/x-djvu'
,
271
'text/rtf'
,
272
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
,
273
'application/vnd.openxmlformats-officedocument.wordprocessingml.template'
,
274
'application/vnd.ms-word.document.macroenabled.12'
,
275
'application/vnd.ms-word.template.macroenabled.12'
,
276
'application/vnd.openxmlformats-officedocument.presentationml.template'
,
277
'application/vnd.openxmlformats-officedocument.presentationml.slideshow'
,
278
'application/vnd.openxmlformats-officedocument.presentationml.presentation'
,
279
'application/vnd.ms-powerpoint.addin.macroenabled.12'
,
280
'application/vnd.ms-powerpoint.presentation.macroenabled.12'
,
281
'application/vnd.ms-powerpoint.presentation.macroenabled.12'
,
282
'application/vnd.ms-powerpoint.slideshow.macroenabled.12'
,
283
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
,
284
'application/vnd.openxmlformats-officedocument.spreadsheetml.template'
,
285
'application/vnd.ms-excel.sheet.macroenabled.12'
,
286
'application/vnd.ms-excel.template.macroenabled.12'
,
287
'application/vnd.ms-excel.addin.macroenabled.12'
,
288
'application/vnd.ms-excel.sheet.binary.macroenabled.12'
,
289
],
290
MEDIATYPE_EXECUTABLE
=> [
291
'application/javascript'
,
292
'text/javascript'
,
293
'application/x-javascript'
,
294
'application/javascript'
,
295
'text/javascript'
,
296
'application/x-javascript'
,
297
'application/x-ecmascript'
,
298
'text/ecmascript'
,
299
'application/x-bash'
,
300
'application/x-sh'
,
301
'application/x-csh'
,
302
'application/x-tcsh'
,
303
'application/x-tcl'
,
304
'application/x-perl'
,
305
'application/x-python'
,
306
'application/wasm'
,
307
],
308
MEDIATYPE_MULTIMEDIA
=> [
309
'application/x-shockwave-flash'
,
310
'application/ogg'
,
311
'application/vnd.apple.mpegurl'
,
312
'application/x-mpegurl'
,
313
'audio/ogg'
,
314
'video/ogg'
,
315
'application/ogg'
,
316
'application/x-ogg'
,
317
'audio/ogg'
,
318
'audio/x-ogg'
,
319
'video/ogg'
,
320
'video/x-ogg'
,
321
'application/x-shockwave-flash'
,
322
'audio/x-pn-realaudio-plugin'
,
323
'model/iges'
,
324
'model/mesh'
,
325
'model/vrml'
,
326
'video/quicktime'
,
327
'video/x-msvideo'
,
328
],
329
MEDIATYPE_AUDIO
=> [
330
'audio/midi'
,
331
'audio/x-aiff'
,
332
'audio/x-wav'
,
333
'audio/mp3'
,
334
'audio/mpeg'
,
335
'audio/mpeg'
,
336
'audio/mp3'
,
337
'audio/mpeg3'
,
338
'audio/mp4'
,
339
'audio/wav'
,
340
'audio/x-wav'
,
341
'audio/wave'
,
342
'audio/midi'
,
343
'audio/mid'
,
344
'audio/basic'
,
345
'audio/ogg'
,
346
'audio/opus'
,
347
'audio/x-aiff'
,
348
'audio/x-pn-realaudio'
,
349
'audio/x-realaudio'
,
350
'audio/webm'
,
351
'audio/matroska'
,
352
'audio/x-flac'
,
353
'audio/flac'
,
354
],
355
MEDIATYPE_BITMAP
=> [
356
'image/x-bmp'
,
357
'image/x-ms-bmp'
,
358
'image/bmp'
,
359
'image/gif'
,
360
'image/jpeg'
,
361
'image/png'
,
362
'image/tiff'
,
363
'image/vnd.djvu'
,
364
'image/x-xcf'
,
365
'image/x-portable-pixmap'
,
366
'image/gif'
,
367
'image/png'
,
368
'image/x-png'
,
369
'image/ief'
,
370
'image/jpeg'
,
371
'image/x-jps'
,
372
'image/pjpeg'
,
373
'image/jp2'
,
374
'image/jpx'
,
375
'image/jxl'
,
376
'image/xbm'
,
377
'image/tiff'
,
378
'image/x-icon'
,
379
'image/x-ico'
,
380
'image/vnd.microsoft.icon'
,
381
'image/x-rgb'
,
382
'image/x-portable-pixmap'
,
383
'image/x-portable-graymap'
,
384
'image/x-portable-greymap'
,
385
'image/x-bmp'
,
386
'image/x-ms-bmp'
,
387
'image/bmp'
,
388
'application/x-bmp'
,
389
'application/bmp'
,
390
'image/x-photoshop'
,
391
'image/psd'
,
392
'image/x-psd'
,
393
'image/photoshop'
,
394
'image/vnd.adobe.photoshop'
,
395
'image/webp'
,
396
],
397
MEDIATYPE_DRAWING
=> [
398
'image/svg+xml'
,
399
'image/svg+xml'
,
400
'application/svg+xml'
,
401
'application/svg'
,
402
'image/svg'
,
403
'application/postscript'
,
404
'application/x-latex'
,
405
'application/x-tex'
,
406
'application/x-dia-diagram'
,
407
'application/acad'
,
408
'application/x-acad'
,
409
'application/autocad_dwg'
,
410
'image/x-dwg'
,
411
'application/dwg'
,
412
'application/x-dwg'
,
413
'application/x-autocad'
,
414
'image/vnd.dwg'
,
415
'drawing/dwg'
,
416
'chemical/x-mdl-molfile'
,
417
'chemical/x-mdl-sdfile'
,
418
'chemical/x-mdl-rxnfile'
,
419
'chemical/x-mdl-rdfile'
,
420
'chemical/x-mdl-rgfile'
,
421
],
422
MEDIATYPE_TEXT
=> [
423
'text/plain'
,
424
'text/html'
,
425
'text/plain'
,
426
'text/html'
,
427
'application/xhtml+xml'
,
428
'application/xml'
,
429
'text/xml'
,
430
'text'
,
431
'application/json'
,
432
'text/csv'
,
433
'text/tab-separated-values'
,
434
],
435
MEDIATYPE_VIDEO
=> [
436
'video/ogg'
,
437
'video/mpeg'
,
438
'video/mpeg'
,
439
'application/mpeg'
,
440
'video/ogg'
,
441
'video/x-sgi-video'
,
442
'video/x-flv'
,
443
'video/webm'
,
444
'video/matroska'
,
445
'video/mp4'
,
446
],
447
MEDIATYPE_UNKNOWN
=> [
448
'unknown/unknown'
,
449
'application/octet-stream'
,
450
'application/x-empty'
,
451
],
452
MEDIATYPE_ARCHIVE
=> [
453
'application/zip'
,
454
'application/x-zip'
,
455
'application/x-gzip'
,
456
'application/x-bzip'
,
457
'application/x-bzip2'
,
458
'application/x-tar'
,
459
'application/x-stuffit'
,
460
'application/x-opc+zip'
,
461
'application/x-7z-compressed'
,
462
],
463
MEDIATYPE_3D
=> [
464
'application/sla'
,
465
'model/gltf-binary'
,
466
'model/gltf+json'
,
467
],
468
];
469
471
public
const
MIME_TYPE_ALIASES = [
472
'text/javascript'
=>
'application/javascript'
,
473
'application/x-javascript'
=>
'application/javascript'
,
474
'audio/mpeg'
=>
'audio/mp3'
,
475
'audio/ogg'
=>
'application/ogg'
,
476
'video/ogg'
=>
'application/ogg'
,
477
'image/x-ms-bmp'
=>
'image/x-bmp'
,
478
'image/bmp'
=>
'image/x-bmp'
,
479
'application/octet-stream'
=>
'unknown/unknown'
,
480
'application/x-empty'
=>
'unknown/unknown'
,
481
'image/x-png'
=>
'image/png'
,
482
'image/pjpeg'
=>
'image/jpeg'
,
483
'image/x-ico'
=>
'image/x-icon'
,
484
'image/vnd.microsoft.icon'
=>
'image/x-icon'
,
485
'image/x-portable-greymap'
=>
'image/x-portable-graymap'
,
486
'application/x-bmp'
=>
'image/x-bmp'
,
487
'application/bmp'
=>
'image/x-bmp'
,
488
'image/psd'
=>
'image/x-photoshop'
,
489
'image/x-psd'
=>
'image/x-photoshop'
,
490
'image/photoshop'
=>
'image/x-photoshop'
,
491
'image/vnd.adobe.photoshop'
=>
'image/x-photoshop'
,
492
'application/svg+xml'
=>
'image/svg+xml'
,
493
'application/svg'
=>
'image/svg+xml'
,
494
'image/svg'
=>
'image/svg+xml'
,
495
'audio/mp3'
=>
'audio/mpeg'
,
496
'audio/mpeg3'
=>
'audio/mpeg'
,
497
'audio/x-wav'
=>
'audio/wav'
,
498
'audio/wave'
=>
'audio/wav'
,
499
'audio/mid'
=>
'audio/midi'
,
500
'application/mpeg'
=>
'video/mpeg'
,
501
'application/x-ogg'
=>
'application/ogg'
,
502
'audio/x-ogg'
=>
'application/ogg'
,
503
'video/x-ogg'
=>
'application/ogg'
,
504
'application/xhtml+xml'
=>
'text/html'
,
505
'text/xml'
=>
'application/xml'
,
506
'application/x-zip'
=>
'application/zip'
,
507
'application/x-ecmascript'
=>
'application/javascript'
,
508
'text/ecmascript'
=>
'application/javascript'
,
509
'application/acrobat'
=>
'application/pdf'
,
510
'image/x.djvu'
=>
'image/vnd.djvu'
,
511
'image/x-djvu'
=>
'image/vnd.djvu'
,
512
'application/x-acad'
=>
'application/acad'
,
513
'application/autocad_dwg'
=>
'application/acad'
,
514
'image/x-dwg'
=>
'application/acad'
,
515
'application/dwg'
=>
'application/acad'
,
516
'application/x-dwg'
=>
'application/acad'
,
517
'application/x-autocad'
=>
'application/acad'
,
518
'image/vnd.dwg'
=>
'application/acad'
,
519
'drawing/dwg'
=>
'application/acad'
,
520
'image/jpeg2000'
=>
'image/jp2'
,
521
'image/jpeg2000-image'
=>
'image/jp2'
,
522
'image/x-jpeg2000-image'
=>
'image/jp2'
,
523
'application/csv'
=>
'text/csv'
,
524
'application/x-csv'
=>
'text/csv'
,
525
'text/x-csv'
=>
'text/csv'
,
526
'text/comma-separated-values'
=>
'text/csv'
,
527
'text/x-comma-separated-values'
=>
'text/csv'
,
528
'video/x-matroska'
=>
'video/matroska'
,
529
'audio/x-matroska'
=>
'audio/matroska'
,
530
];
531
}
MEDIATYPE_DRAWING
const MEDIATYPE_DRAWING
Definition
defines.php:17
MEDIATYPE_VIDEO
const MEDIATYPE_VIDEO
Definition
defines.php:22
MEDIATYPE_OFFICE
const MEDIATYPE_OFFICE
Definition
defines.php:26
MEDIATYPE_UNKNOWN
const MEDIATYPE_UNKNOWN
Definition
defines.php:13
MEDIATYPE_AUDIO
const MEDIATYPE_AUDIO
Definition
defines.php:19
MEDIATYPE_TEXT
const MEDIATYPE_TEXT
Definition
defines.php:28
MEDIATYPE_BITMAP
const MEDIATYPE_BITMAP
Definition
defines.php:15
MEDIATYPE_MULTIMEDIA
const MEDIATYPE_MULTIMEDIA
Definition
defines.php:24
MEDIATYPE_EXECUTABLE
const MEDIATYPE_EXECUTABLE
Definition
defines.php:30
MEDIATYPE_3D
const MEDIATYPE_3D
Definition
defines.php:34
MEDIATYPE_ARCHIVE
const MEDIATYPE_ARCHIVE
Definition
defines.php:32
Wikimedia\Mime\MimeMap
Map of MIME types to file extensions and media types.
Definition
MimeMap.php:15
includes
libs
Mime
MimeMap.php
Generated on
for MediaWiki by
1.18.0