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