1: <?php
2:
3: namespace Guzzle\Http;
4:
5: 6: 7: 8:
9: class Mimetypes
10: {
11: 12: 13:
14: protected static $instance;
15:
16: 17: 18:
19: protected $mimetypes = array(
20: '3dml' => 'text/vnd.in3d.3dml',
21: '3g2' => 'video/3gpp2',
22: '3gp' => 'video/3gpp',
23: '7z' => 'application/x-7z-compressed',
24: 'aab' => 'application/x-authorware-bin',
25: 'aac' => 'audio/x-aac',
26: 'aam' => 'application/x-authorware-map',
27: 'aas' => 'application/x-authorware-seg',
28: 'abw' => 'application/x-abiword',
29: 'ac' => 'application/pkix-attr-cert',
30: 'acc' => 'application/vnd.americandynamics.acc',
31: 'ace' => 'application/x-ace-compressed',
32: 'acu' => 'application/vnd.acucobol',
33: 'acutc' => 'application/vnd.acucorp',
34: 'adp' => 'audio/adpcm',
35: 'aep' => 'application/vnd.audiograph',
36: 'afm' => 'application/x-font-type1',
37: 'afp' => 'application/vnd.ibm.modcap',
38: 'ahead' => 'application/vnd.ahead.space',
39: 'ai' => 'application/postscript',
40: 'aif' => 'audio/x-aiff',
41: 'aifc' => 'audio/x-aiff',
42: 'aiff' => 'audio/x-aiff',
43: 'air' => 'application/vnd.adobe.air-application-installer-package+zip',
44: 'ait' => 'application/vnd.dvb.ait',
45: 'ami' => 'application/vnd.amiga.ami',
46: 'apk' => 'application/vnd.android.package-archive',
47: 'application' => 'application/x-ms-application',
48: 'apr' => 'application/vnd.lotus-approach',
49: 'asa' => 'text/plain',
50: 'asax' => 'application/octet-stream',
51: 'asc' => 'application/pgp-signature',
52: 'ascx' => 'text/plain',
53: 'asf' => 'video/x-ms-asf',
54: 'ashx' => 'text/plain',
55: 'asm' => 'text/x-asm',
56: 'asmx' => 'text/plain',
57: 'aso' => 'application/vnd.accpac.simply.aso',
58: 'asp' => 'text/plain',
59: 'aspx' => 'text/plain',
60: 'asx' => 'video/x-ms-asf',
61: 'atc' => 'application/vnd.acucorp',
62: 'atom' => 'application/atom+xml',
63: 'atomcat' => 'application/atomcat+xml',
64: 'atomsvc' => 'application/atomsvc+xml',
65: 'atx' => 'application/vnd.antix.game-component',
66: 'au' => 'audio/basic',
67: 'avi' => 'video/x-msvideo',
68: 'aw' => 'application/applixware',
69: 'axd' => 'text/plain',
70: 'azf' => 'application/vnd.airzip.filesecure.azf',
71: 'azs' => 'application/vnd.airzip.filesecure.azs',
72: 'azw' => 'application/vnd.amazon.ebook',
73: 'bat' => 'application/x-msdownload',
74: 'bcpio' => 'application/x-bcpio',
75: 'bdf' => 'application/x-font-bdf',
76: 'bdm' => 'application/vnd.syncml.dm+wbxml',
77: 'bed' => 'application/vnd.realvnc.bed',
78: 'bh2' => 'application/vnd.fujitsu.oasysprs',
79: 'bin' => 'application/octet-stream',
80: 'bmi' => 'application/vnd.bmi',
81: 'bmp' => 'image/bmp',
82: 'book' => 'application/vnd.framemaker',
83: 'box' => 'application/vnd.previewsystems.box',
84: 'boz' => 'application/x-bzip2',
85: 'bpk' => 'application/octet-stream',
86: 'btif' => 'image/prs.btif',
87: 'bz' => 'application/x-bzip',
88: 'bz2' => 'application/x-bzip2',
89: 'c' => 'text/x-c',
90: 'c11amc' => 'application/vnd.cluetrust.cartomobile-config',
91: 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg',
92: 'c4d' => 'application/vnd.clonk.c4group',
93: 'c4f' => 'application/vnd.clonk.c4group',
94: 'c4g' => 'application/vnd.clonk.c4group',
95: 'c4p' => 'application/vnd.clonk.c4group',
96: 'c4u' => 'application/vnd.clonk.c4group',
97: 'cab' => 'application/vnd.ms-cab-compressed',
98: 'car' => 'application/vnd.curl.car',
99: 'cat' => 'application/vnd.ms-pki.seccat',
100: 'cc' => 'text/x-c',
101: 'cct' => 'application/x-director',
102: 'ccxml' => 'application/ccxml+xml',
103: 'cdbcmsg' => 'application/vnd.contact.cmsg',
104: 'cdf' => 'application/x-netcdf',
105: 'cdkey' => 'application/vnd.mediastation.cdkey',
106: 'cdmia' => 'application/cdmi-capability',
107: 'cdmic' => 'application/cdmi-container',
108: 'cdmid' => 'application/cdmi-domain',
109: 'cdmio' => 'application/cdmi-object',
110: 'cdmiq' => 'application/cdmi-queue',
111: 'cdx' => 'chemical/x-cdx',
112: 'cdxml' => 'application/vnd.chemdraw+xml',
113: 'cdy' => 'application/vnd.cinderella',
114: 'cer' => 'application/pkix-cert',
115: 'cfc' => 'application/x-coldfusion',
116: 'cfm' => 'application/x-coldfusion',
117: 'cgm' => 'image/cgm',
118: 'chat' => 'application/x-chat',
119: 'chm' => 'application/vnd.ms-htmlhelp',
120: 'chrt' => 'application/vnd.kde.kchart',
121: 'cif' => 'chemical/x-cif',
122: 'cii' => 'application/vnd.anser-web-certificate-issue-initiation',
123: 'cil' => 'application/vnd.ms-artgalry',
124: 'cla' => 'application/vnd.claymore',
125: 'class' => 'application/java-vm',
126: 'clkk' => 'application/vnd.crick.clicker.keyboard',
127: 'clkp' => 'application/vnd.crick.clicker.palette',
128: 'clkt' => 'application/vnd.crick.clicker.template',
129: 'clkw' => 'application/vnd.crick.clicker.wordbank',
130: 'clkx' => 'application/vnd.crick.clicker',
131: 'clp' => 'application/x-msclip',
132: 'cmc' => 'application/vnd.cosmocaller',
133: 'cmdf' => 'chemical/x-cmdf',
134: 'cml' => 'chemical/x-cml',
135: 'cmp' => 'application/vnd.yellowriver-custom-menu',
136: 'cmx' => 'image/x-cmx',
137: 'cod' => 'application/vnd.rim.cod',
138: 'com' => 'application/x-msdownload',
139: 'conf' => 'text/plain',
140: 'cpio' => 'application/x-cpio',
141: 'cpp' => 'text/x-c',
142: 'cpt' => 'application/mac-compactpro',
143: 'crd' => 'application/x-mscardfile',
144: 'crl' => 'application/pkix-crl',
145: 'crt' => 'application/x-x509-ca-cert',
146: 'cryptonote' => 'application/vnd.rig.cryptonote',
147: 'cs' => 'text/plain',
148: 'csh' => 'application/x-csh',
149: 'csml' => 'chemical/x-csml',
150: 'csp' => 'application/vnd.commonspace',
151: 'css' => 'text/css',
152: 'cst' => 'application/x-director',
153: 'csv' => 'text/csv',
154: 'cu' => 'application/cu-seeme',
155: 'curl' => 'text/vnd.curl',
156: 'cww' => 'application/prs.cww',
157: 'cxt' => 'application/x-director',
158: 'cxx' => 'text/x-c',
159: 'dae' => 'model/vnd.collada+xml',
160: 'daf' => 'application/vnd.mobius.daf',
161: 'dataless' => 'application/vnd.fdsn.seed',
162: 'davmount' => 'application/davmount+xml',
163: 'dcr' => 'application/x-director',
164: 'dcurl' => 'text/vnd.curl.dcurl',
165: 'dd2' => 'application/vnd.oma.dd2+xml',
166: 'ddd' => 'application/vnd.fujixerox.ddd',
167: 'deb' => 'application/x-debian-package',
168: 'def' => 'text/plain',
169: 'deploy' => 'application/octet-stream',
170: 'der' => 'application/x-x509-ca-cert',
171: 'dfac' => 'application/vnd.dreamfactory',
172: 'dic' => 'text/x-c',
173: 'dir' => 'application/x-director',
174: 'dis' => 'application/vnd.mobius.dis',
175: 'dist' => 'application/octet-stream',
176: 'distz' => 'application/octet-stream',
177: 'djv' => 'image/vnd.djvu',
178: 'djvu' => 'image/vnd.djvu',
179: 'dll' => 'application/x-msdownload',
180: 'dmg' => 'application/octet-stream',
181: 'dms' => 'application/octet-stream',
182: 'dna' => 'application/vnd.dna',
183: 'doc' => 'application/msword',
184: 'docm' => 'application/vnd.ms-word.document.macroenabled.12',
185: 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
186: 'dot' => 'application/msword',
187: 'dotm' => 'application/vnd.ms-word.template.macroenabled.12',
188: 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
189: 'dp' => 'application/vnd.osgi.dp',
190: 'dpg' => 'application/vnd.dpgraph',
191: 'dra' => 'audio/vnd.dra',
192: 'dsc' => 'text/prs.lines.tag',
193: 'dssc' => 'application/dssc+der',
194: 'dtb' => 'application/x-dtbook+xml',
195: 'dtd' => 'application/xml-dtd',
196: 'dts' => 'audio/vnd.dts',
197: 'dtshd' => 'audio/vnd.dts.hd',
198: 'dump' => 'application/octet-stream',
199: 'dvi' => 'application/x-dvi',
200: 'dwf' => 'model/vnd.dwf',
201: 'dwg' => 'image/vnd.dwg',
202: 'dxf' => 'image/vnd.dxf',
203: 'dxp' => 'application/vnd.spotfire.dxp',
204: 'dxr' => 'application/x-director',
205: 'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
206: 'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
207: 'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
208: 'ecma' => 'application/ecmascript',
209: 'edm' => 'application/vnd.novadigm.edm',
210: 'edx' => 'application/vnd.novadigm.edx',
211: 'efif' => 'application/vnd.picsel',
212: 'ei6' => 'application/vnd.pg.osasli',
213: 'elc' => 'application/octet-stream',
214: 'eml' => 'message/rfc822',
215: 'emma' => 'application/emma+xml',
216: 'eol' => 'audio/vnd.digital-winds',
217: 'eot' => 'application/vnd.ms-fontobject',
218: 'eps' => 'application/postscript',
219: 'epub' => 'application/epub+zip',
220: 'es3' => 'application/vnd.eszigno3+xml',
221: 'esf' => 'application/vnd.epson.esf',
222: 'et3' => 'application/vnd.eszigno3+xml',
223: 'etx' => 'text/x-setext',
224: 'exe' => 'application/x-msdownload',
225: 'exi' => 'application/exi',
226: 'ext' => 'application/vnd.novadigm.ext',
227: 'ez' => 'application/andrew-inset',
228: 'ez2' => 'application/vnd.ezpix-album',
229: 'ez3' => 'application/vnd.ezpix-package',
230: 'f' => 'text/x-fortran',
231: 'f4v' => 'video/x-f4v',
232: 'f77' => 'text/x-fortran',
233: 'f90' => 'text/x-fortran',
234: 'fbs' => 'image/vnd.fastbidsheet',
235: 'fcs' => 'application/vnd.isac.fcs',
236: 'fdf' => 'application/vnd.fdf',
237: 'fe_launch' => 'application/vnd.denovo.fcselayout-link',
238: 'fg5' => 'application/vnd.fujitsu.oasysgp',
239: 'fgd' => 'application/x-director',
240: 'fh' => 'image/x-freehand',
241: 'fh4' => 'image/x-freehand',
242: 'fh5' => 'image/x-freehand',
243: 'fh7' => 'image/x-freehand',
244: 'fhc' => 'image/x-freehand',
245: 'fig' => 'application/x-xfig',
246: 'fli' => 'video/x-fli',
247: 'flo' => 'application/vnd.micrografx.flo',
248: 'flv' => 'video/x-flv',
249: 'flw' => 'application/vnd.kde.kivio',
250: 'flx' => 'text/vnd.fmi.flexstor',
251: 'fly' => 'text/vnd.fly',
252: 'fm' => 'application/vnd.framemaker',
253: 'fnc' => 'application/vnd.frogans.fnc',
254: 'for' => 'text/x-fortran',
255: 'fpx' => 'image/vnd.fpx',
256: 'frame' => 'application/vnd.framemaker',
257: 'fsc' => 'application/vnd.fsc.weblaunch',
258: 'fst' => 'image/vnd.fst',
259: 'ftc' => 'application/vnd.fluxtime.clip',
260: 'fti' => 'application/vnd.anser-web-funds-transfer-initiation',
261: 'fvt' => 'video/vnd.fvt',
262: 'fxp' => 'application/vnd.adobe.fxp',
263: 'fxpl' => 'application/vnd.adobe.fxp',
264: 'fzs' => 'application/vnd.fuzzysheet',
265: 'g2w' => 'application/vnd.geoplan',
266: 'g3' => 'image/g3fax',
267: 'g3w' => 'application/vnd.geospace',
268: 'gac' => 'application/vnd.groove-account',
269: 'gdl' => 'model/vnd.gdl',
270: 'geo' => 'application/vnd.dynageo',
271: 'gex' => 'application/vnd.geometry-explorer',
272: 'ggb' => 'application/vnd.geogebra.file',
273: 'ggt' => 'application/vnd.geogebra.tool',
274: 'ghf' => 'application/vnd.groove-help',
275: 'gif' => 'image/gif',
276: 'gim' => 'application/vnd.groove-identity-message',
277: 'gmx' => 'application/vnd.gmx',
278: 'gnumeric' => 'application/x-gnumeric',
279: 'gph' => 'application/vnd.flographit',
280: 'gqf' => 'application/vnd.grafeq',
281: 'gqs' => 'application/vnd.grafeq',
282: 'gram' => 'application/srgs',
283: 'gre' => 'application/vnd.geometry-explorer',
284: 'grv' => 'application/vnd.groove-injector',
285: 'grxml' => 'application/srgs+xml',
286: 'gsf' => 'application/x-font-ghostscript',
287: 'gtar' => 'application/x-gtar',
288: 'gtm' => 'application/vnd.groove-tool-message',
289: 'gtw' => 'model/vnd.gtw',
290: 'gv' => 'text/vnd.graphviz',
291: 'gxt' => 'application/vnd.geonext',
292: 'h' => 'text/x-c',
293: 'h261' => 'video/h261',
294: 'h263' => 'video/h263',
295: 'h264' => 'video/h264',
296: 'hal' => 'application/vnd.hal+xml',
297: 'hbci' => 'application/vnd.hbci',
298: 'hdf' => 'application/x-hdf',
299: 'hh' => 'text/x-c',
300: 'hlp' => 'application/winhlp',
301: 'hpgl' => 'application/vnd.hp-hpgl',
302: 'hpid' => 'application/vnd.hp-hpid',
303: 'hps' => 'application/vnd.hp-hps',
304: 'hqx' => 'application/mac-binhex40',
305: 'hta' => 'application/octet-stream',
306: 'htc' => 'text/html',
307: 'htke' => 'application/vnd.kenameaapp',
308: 'htm' => 'text/html',
309: 'html' => 'text/html',
310: 'hvd' => 'application/vnd.yamaha.hv-dic',
311: 'hvp' => 'application/vnd.yamaha.hv-voice',
312: 'hvs' => 'application/vnd.yamaha.hv-script',
313: 'i2g' => 'application/vnd.intergeo',
314: 'icc' => 'application/vnd.iccprofile',
315: 'ice' => 'x-conference/x-cooltalk',
316: 'icm' => 'application/vnd.iccprofile',
317: 'ico' => 'image/x-icon',
318: 'ics' => 'text/calendar',
319: 'ief' => 'image/ief',
320: 'ifb' => 'text/calendar',
321: 'ifm' => 'application/vnd.shana.informed.formdata',
322: 'iges' => 'model/iges',
323: 'igl' => 'application/vnd.igloader',
324: 'igm' => 'application/vnd.insors.igm',
325: 'igs' => 'model/iges',
326: 'igx' => 'application/vnd.micrografx.igx',
327: 'iif' => 'application/vnd.shana.informed.interchange',
328: 'imp' => 'application/vnd.accpac.simply.imp',
329: 'ims' => 'application/vnd.ms-ims',
330: 'in' => 'text/plain',
331: 'ini' => 'text/plain',
332: 'ipfix' => 'application/ipfix',
333: 'ipk' => 'application/vnd.shana.informed.package',
334: 'irm' => 'application/vnd.ibm.rights-management',
335: 'irp' => 'application/vnd.irepository.package+xml',
336: 'iso' => 'application/octet-stream',
337: 'itp' => 'application/vnd.shana.informed.formtemplate',
338: 'ivp' => 'application/vnd.immervision-ivp',
339: 'ivu' => 'application/vnd.immervision-ivu',
340: 'jad' => 'text/vnd.sun.j2me.app-descriptor',
341: 'jam' => 'application/vnd.jam',
342: 'jar' => 'application/java-archive',
343: 'java' => 'text/x-java-source',
344: 'jisp' => 'application/vnd.jisp',
345: 'jlt' => 'application/vnd.hp-jlyt',
346: 'jnlp' => 'application/x-java-jnlp-file',
347: 'joda' => 'application/vnd.joost.joda-archive',
348: 'jpe' => 'image/jpeg',
349: 'jpeg' => 'image/jpeg',
350: 'jpg' => 'image/jpeg',
351: 'jpgm' => 'video/jpm',
352: 'jpgv' => 'video/jpeg',
353: 'jpm' => 'video/jpm',
354: 'js' => 'text/javascript',
355: 'json' => 'application/json',
356: 'kar' => 'audio/midi',
357: 'karbon' => 'application/vnd.kde.karbon',
358: 'kfo' => 'application/vnd.kde.kformula',
359: 'kia' => 'application/vnd.kidspiration',
360: 'kml' => 'application/vnd.google-earth.kml+xml',
361: 'kmz' => 'application/vnd.google-earth.kmz',
362: 'kne' => 'application/vnd.kinar',
363: 'knp' => 'application/vnd.kinar',
364: 'kon' => 'application/vnd.kde.kontour',
365: 'kpr' => 'application/vnd.kde.kpresenter',
366: 'kpt' => 'application/vnd.kde.kpresenter',
367: 'ksp' => 'application/vnd.kde.kspread',
368: 'ktr' => 'application/vnd.kahootz',
369: 'ktx' => 'image/ktx',
370: 'ktz' => 'application/vnd.kahootz',
371: 'kwd' => 'application/vnd.kde.kword',
372: 'kwt' => 'application/vnd.kde.kword',
373: 'lasxml' => 'application/vnd.las.las+xml',
374: 'latex' => 'application/x-latex',
375: 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
376: 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml',
377: 'les' => 'application/vnd.hhe.lesson-player',
378: 'lha' => 'application/octet-stream',
379: 'link66' => 'application/vnd.route66.link66+xml',
380: 'list' => 'text/plain',
381: 'list3820' => 'application/vnd.ibm.modcap',
382: 'listafp' => 'application/vnd.ibm.modcap',
383: 'log' => 'text/plain',
384: 'lostxml' => 'application/lost+xml',
385: 'lrf' => 'application/octet-stream',
386: 'lrm' => 'application/vnd.ms-lrm',
387: 'ltf' => 'application/vnd.frogans.ltf',
388: 'lvp' => 'audio/vnd.lucent.voice',
389: 'lwp' => 'application/vnd.lotus-wordpro',
390: 'lzh' => 'application/octet-stream',
391: 'm13' => 'application/x-msmediaview',
392: 'm14' => 'application/x-msmediaview',
393: 'm1v' => 'video/mpeg',
394: 'm21' => 'application/mp21',
395: 'm2a' => 'audio/mpeg',
396: 'm2v' => 'video/mpeg',
397: 'm3a' => 'audio/mpeg',
398: 'm3u' => 'audio/x-mpegurl',
399: 'm3u8' => 'application/vnd.apple.mpegurl',
400: 'm4a' => 'audio/mp4',
401: 'm4u' => 'video/vnd.mpegurl',
402: 'm4v' => 'video/mp4',
403: 'ma' => 'application/mathematica',
404: 'mads' => 'application/mads+xml',
405: 'mag' => 'application/vnd.ecowin.chart',
406: 'maker' => 'application/vnd.framemaker',
407: 'man' => 'text/troff',
408: 'mathml' => 'application/mathml+xml',
409: 'mb' => 'application/mathematica',
410: 'mbk' => 'application/vnd.mobius.mbk',
411: 'mbox' => 'application/mbox',
412: 'mc1' => 'application/vnd.medcalcdata',
413: 'mcd' => 'application/vnd.mcd',
414: 'mcurl' => 'text/vnd.curl.mcurl',
415: 'mdb' => 'application/x-msaccess',
416: 'mdi' => 'image/vnd.ms-modi',
417: 'me' => 'text/troff',
418: 'mesh' => 'model/mesh',
419: 'meta4' => 'application/metalink4+xml',
420: 'mets' => 'application/mets+xml',
421: 'mfm' => 'application/vnd.mfmp',
422: 'mgp' => 'application/vnd.osgeo.mapguide.package',
423: 'mgz' => 'application/vnd.proteus.magazine',
424: 'mid' => 'audio/midi',
425: 'midi' => 'audio/midi',
426: 'mif' => 'application/vnd.mif',
427: 'mime' => 'message/rfc822',
428: 'mj2' => 'video/mj2',
429: 'mjp2' => 'video/mj2',
430: 'mlp' => 'application/vnd.dolby.mlp',
431: 'mmd' => 'application/vnd.chipnuts.karaoke-mmd',
432: 'mmf' => 'application/vnd.smaf',
433: 'mmr' => 'image/vnd.fujixerox.edmics-mmr',
434: 'mny' => 'application/x-msmoney',
435: 'mobi' => 'application/x-mobipocket-ebook',
436: 'mods' => 'application/mods+xml',
437: 'mov' => 'video/quicktime',
438: 'movie' => 'video/x-sgi-movie',
439: 'mp2' => 'audio/mpeg',
440: 'mp21' => 'application/mp21',
441: 'mp2a' => 'audio/mpeg',
442: 'mp3' => 'audio/mpeg',
443: 'mp4' => 'video/mp4',
444: 'mp4a' => 'audio/mp4',
445: 'mp4s' => 'application/mp4',
446: 'mp4v' => 'video/mp4',
447: 'mpc' => 'application/vnd.mophun.certificate',
448: 'mpe' => 'video/mpeg',
449: 'mpeg' => 'video/mpeg',
450: 'mpg' => 'video/mpeg',
451: 'mpg4' => 'video/mp4',
452: 'mpga' => 'audio/mpeg',
453: 'mpkg' => 'application/vnd.apple.installer+xml',
454: 'mpm' => 'application/vnd.blueice.multipass',
455: 'mpn' => 'application/vnd.mophun.application',
456: 'mpp' => 'application/vnd.ms-project',
457: 'mpt' => 'application/vnd.ms-project',
458: 'mpy' => 'application/vnd.ibm.minipay',
459: 'mqy' => 'application/vnd.mobius.mqy',
460: 'mrc' => 'application/marc',
461: 'mrcx' => 'application/marcxml+xml',
462: 'ms' => 'text/troff',
463: 'mscml' => 'application/mediaservercontrol+xml',
464: 'mseed' => 'application/vnd.fdsn.mseed',
465: 'mseq' => 'application/vnd.mseq',
466: 'msf' => 'application/vnd.epson.msf',
467: 'msh' => 'model/mesh',
468: 'msi' => 'application/x-msdownload',
469: 'msl' => 'application/vnd.mobius.msl',
470: 'msty' => 'application/vnd.muvee.style',
471: 'mts' => 'model/vnd.mts',
472: 'mus' => 'application/vnd.musician',
473: 'musicxml' => 'application/vnd.recordare.musicxml+xml',
474: 'mvb' => 'application/x-msmediaview',
475: 'mwf' => 'application/vnd.mfer',
476: 'mxf' => 'application/mxf',
477: 'mxl' => 'application/vnd.recordare.musicxml',
478: 'mxml' => 'application/xv+xml',
479: 'mxs' => 'application/vnd.triscape.mxs',
480: 'mxu' => 'video/vnd.mpegurl',
481: 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install',
482: 'n3' => 'text/n3',
483: 'nb' => 'application/mathematica',
484: 'nbp' => 'application/vnd.wolfram.player',
485: 'nc' => 'application/x-netcdf',
486: 'ncx' => 'application/x-dtbncx+xml',
487: 'ngdat' => 'application/vnd.nokia.n-gage.data',
488: 'nlu' => 'application/vnd.neurolanguage.nlu',
489: 'nml' => 'application/vnd.enliven',
490: 'nnd' => 'application/vnd.noblenet-directory',
491: 'nns' => 'application/vnd.noblenet-sealer',
492: 'nnw' => 'application/vnd.noblenet-web',
493: 'npx' => 'image/vnd.net-fpx',
494: 'nsf' => 'application/vnd.lotus-notes',
495: 'oa2' => 'application/vnd.fujitsu.oasys2',
496: 'oa3' => 'application/vnd.fujitsu.oasys3',
497: 'oas' => 'application/vnd.fujitsu.oasys',
498: 'obd' => 'application/x-msbinder',
499: 'oda' => 'application/oda',
500: 'odb' => 'application/vnd.oasis.opendocument.database',
501: 'odc' => 'application/vnd.oasis.opendocument.chart',
502: 'odf' => 'application/vnd.oasis.opendocument.formula',
503: 'odft' => 'application/vnd.oasis.opendocument.formula-template',
504: 'odg' => 'application/vnd.oasis.opendocument.graphics',
505: 'odi' => 'application/vnd.oasis.opendocument.image',
506: 'odm' => 'application/vnd.oasis.opendocument.text-master',
507: 'odp' => 'application/vnd.oasis.opendocument.presentation',
508: 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
509: 'odt' => 'application/vnd.oasis.opendocument.text',
510: 'oga' => 'audio/ogg',
511: 'ogg' => 'audio/ogg',
512: 'ogv' => 'video/ogg',
513: 'ogx' => 'application/ogg',
514: 'onepkg' => 'application/onenote',
515: 'onetmp' => 'application/onenote',
516: 'onetoc' => 'application/onenote',
517: 'onetoc2' => 'application/onenote',
518: 'opf' => 'application/oebps-package+xml',
519: 'oprc' => 'application/vnd.palm',
520: 'org' => 'application/vnd.lotus-organizer',
521: 'osf' => 'application/vnd.yamaha.openscoreformat',
522: 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
523: 'otc' => 'application/vnd.oasis.opendocument.chart-template',
524: 'otf' => 'application/x-font-otf',
525: 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
526: 'oth' => 'application/vnd.oasis.opendocument.text-web',
527: 'oti' => 'application/vnd.oasis.opendocument.image-template',
528: 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
529: 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
530: 'ott' => 'application/vnd.oasis.opendocument.text-template',
531: 'oxt' => 'application/vnd.openofficeorg.extension',
532: 'p' => 'text/x-pascal',
533: 'p10' => 'application/pkcs10',
534: 'p12' => 'application/x-pkcs12',
535: 'p7b' => 'application/x-pkcs7-certificates',
536: 'p7c' => 'application/pkcs7-mime',
537: 'p7m' => 'application/pkcs7-mime',
538: 'p7r' => 'application/x-pkcs7-certreqresp',
539: 'p7s' => 'application/pkcs7-signature',
540: 'p8' => 'application/pkcs8',
541: 'pas' => 'text/x-pascal',
542: 'paw' => 'application/vnd.pawaafile',
543: 'pbd' => 'application/vnd.powerbuilder6',
544: 'pbm' => 'image/x-portable-bitmap',
545: 'pcf' => 'application/x-font-pcf',
546: 'pcl' => 'application/vnd.hp-pcl',
547: 'pclxl' => 'application/vnd.hp-pclxl',
548: 'pct' => 'image/x-pict',
549: 'pcurl' => 'application/vnd.curl.pcurl',
550: 'pcx' => 'image/x-pcx',
551: 'pdb' => 'application/vnd.palm',
552: 'pdf' => 'application/pdf',
553: 'pfa' => 'application/x-font-type1',
554: 'pfb' => 'application/x-font-type1',
555: 'pfm' => 'application/x-font-type1',
556: 'pfr' => 'application/font-tdpfr',
557: 'pfx' => 'application/x-pkcs12',
558: 'pgm' => 'image/x-portable-graymap',
559: 'pgn' => 'application/x-chess-pgn',
560: 'pgp' => 'application/pgp-encrypted',
561: 'php' => 'text/x-php',
562: 'phps' => 'application/x-httpd-phps',
563: 'pic' => 'image/x-pict',
564: 'pkg' => 'application/octet-stream',
565: 'pki' => 'application/pkixcmp',
566: 'pkipath' => 'application/pkix-pkipath',
567: 'plb' => 'application/vnd.3gpp.pic-bw-large',
568: 'plc' => 'application/vnd.mobius.plc',
569: 'plf' => 'application/vnd.pocketlearn',
570: 'pls' => 'application/pls+xml',
571: 'pml' => 'application/vnd.ctc-posml',
572: 'png' => 'image/png',
573: 'pnm' => 'image/x-portable-anymap',
574: 'portpkg' => 'application/vnd.macports.portpkg',
575: 'pot' => 'application/vnd.ms-powerpoint',
576: 'potm' => 'application/vnd.ms-powerpoint.template.macroenabled.12',
577: 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
578: 'ppam' => 'application/vnd.ms-powerpoint.addin.macroenabled.12',
579: 'ppd' => 'application/vnd.cups-ppd',
580: 'ppm' => 'image/x-portable-pixmap',
581: 'pps' => 'application/vnd.ms-powerpoint',
582: 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroenabled.12',
583: 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
584: 'ppt' => 'application/vnd.ms-powerpoint',
585: 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroenabled.12',
586: 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
587: 'pqa' => 'application/vnd.palm',
588: 'prc' => 'application/x-mobipocket-ebook',
589: 'pre' => 'application/vnd.lotus-freelance',
590: 'prf' => 'application/pics-rules',
591: 'ps' => 'application/postscript',
592: 'psb' => 'application/vnd.3gpp.pic-bw-small',
593: 'psd' => 'image/vnd.adobe.photoshop',
594: 'psf' => 'application/x-font-linux-psf',
595: 'pskcxml' => 'application/pskc+xml',
596: 'ptid' => 'application/vnd.pvi.ptid1',
597: 'pub' => 'application/x-mspublisher',
598: 'pvb' => 'application/vnd.3gpp.pic-bw-var',
599: 'pwn' => 'application/vnd.3m.post-it-notes',
600: 'pya' => 'audio/vnd.ms-playready.media.pya',
601: 'pyv' => 'video/vnd.ms-playready.media.pyv',
602: 'qam' => 'application/vnd.epson.quickanime',
603: 'qbo' => 'application/vnd.intu.qbo',
604: 'qfx' => 'application/vnd.intu.qfx',
605: 'qps' => 'application/vnd.publishare-delta-tree',
606: 'qt' => 'video/quicktime',
607: 'qwd' => 'application/vnd.quark.quarkxpress',
608: 'qwt' => 'application/vnd.quark.quarkxpress',
609: 'qxb' => 'application/vnd.quark.quarkxpress',
610: 'qxd' => 'application/vnd.quark.quarkxpress',
611: 'qxl' => 'application/vnd.quark.quarkxpress',
612: 'qxt' => 'application/vnd.quark.quarkxpress',
613: 'ra' => 'audio/x-pn-realaudio',
614: 'ram' => 'audio/x-pn-realaudio',
615: 'rar' => 'application/x-rar-compressed',
616: 'ras' => 'image/x-cmu-raster',
617: 'rb' => 'text/plain',
618: 'rcprofile' => 'application/vnd.ipunplugged.rcprofile',
619: 'rdf' => 'application/rdf+xml',
620: 'rdz' => 'application/vnd.data-vision.rdz',
621: 'rep' => 'application/vnd.businessobjects',
622: 'res' => 'application/x-dtbresource+xml',
623: 'resx' => 'text/xml',
624: 'rgb' => 'image/x-rgb',
625: 'rif' => 'application/reginfo+xml',
626: 'rip' => 'audio/vnd.rip',
627: 'rl' => 'application/resource-lists+xml',
628: 'rlc' => 'image/vnd.fujixerox.edmics-rlc',
629: 'rld' => 'application/resource-lists-diff+xml',
630: 'rm' => 'application/vnd.rn-realmedia',
631: 'rmi' => 'audio/midi',
632: 'rmp' => 'audio/x-pn-realaudio-plugin',
633: 'rms' => 'application/vnd.jcp.javame.midlet-rms',
634: 'rnc' => 'application/relax-ng-compact-syntax',
635: 'roff' => 'text/troff',
636: 'rp9' => 'application/vnd.cloanto.rp9',
637: 'rpss' => 'application/vnd.nokia.radio-presets',
638: 'rpst' => 'application/vnd.nokia.radio-preset',
639: 'rq' => 'application/sparql-query',
640: 'rs' => 'application/rls-services+xml',
641: 'rsd' => 'application/rsd+xml',
642: 'rss' => 'application/rss+xml',
643: 'rtf' => 'application/rtf',
644: 'rtx' => 'text/richtext',
645: 's' => 'text/x-asm',
646: 'saf' => 'application/vnd.yamaha.smaf-audio',
647: 'sbml' => 'application/sbml+xml',
648: 'sc' => 'application/vnd.ibm.secure-container',
649: 'scd' => 'application/x-msschedule',
650: 'scm' => 'application/vnd.lotus-screencam',
651: 'scq' => 'application/scvp-cv-request',
652: 'scs' => 'application/scvp-cv-response',
653: 'scurl' => 'text/vnd.curl.scurl',
654: 'sda' => 'application/vnd.stardivision.draw',
655: 'sdc' => 'application/vnd.stardivision.calc',
656: 'sdd' => 'application/vnd.stardivision.impress',
657: 'sdkd' => 'application/vnd.solent.sdkm+xml',
658: 'sdkm' => 'application/vnd.solent.sdkm+xml',
659: 'sdp' => 'application/sdp',
660: 'sdw' => 'application/vnd.stardivision.writer',
661: 'see' => 'application/vnd.seemail',
662: 'seed' => 'application/vnd.fdsn.seed',
663: 'sema' => 'application/vnd.sema',
664: 'semd' => 'application/vnd.semd',
665: 'semf' => 'application/vnd.semf',
666: 'ser' => 'application/java-serialized-object',
667: 'setpay' => 'application/set-payment-initiation',
668: 'setreg' => 'application/set-registration-initiation',
669: 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data',
670: 'sfs' => 'application/vnd.spotfire.sfs',
671: 'sgl' => 'application/vnd.stardivision.writer-global',
672: 'sgm' => 'text/sgml',
673: 'sgml' => 'text/sgml',
674: 'sh' => 'application/x-sh',
675: 'shar' => 'application/x-shar',
676: 'shf' => 'application/shf+xml',
677: 'sig' => 'application/pgp-signature',
678: 'silo' => 'model/mesh',
679: 'sis' => 'application/vnd.symbian.install',
680: 'sisx' => 'application/vnd.symbian.install',
681: 'sit' => 'application/x-stuffit',
682: 'sitx' => 'application/x-stuffitx',
683: 'skd' => 'application/vnd.koan',
684: 'skm' => 'application/vnd.koan',
685: 'skp' => 'application/vnd.koan',
686: 'skt' => 'application/vnd.koan',
687: 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12',
688: 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
689: 'slt' => 'application/vnd.epson.salt',
690: 'sm' => 'application/vnd.stepmania.stepchart',
691: 'smf' => 'application/vnd.stardivision.math',
692: 'smi' => 'application/smil+xml',
693: 'smil' => 'application/smil+xml',
694: 'snd' => 'audio/basic',
695: 'snf' => 'application/x-font-snf',
696: 'so' => 'application/octet-stream',
697: 'spc' => 'application/x-pkcs7-certificates',
698: 'spf' => 'application/vnd.yamaha.smaf-phrase',
699: 'spl' => 'application/x-futuresplash',
700: 'spot' => 'text/vnd.in3d.spot',
701: 'spp' => 'application/scvp-vp-response',
702: 'spq' => 'application/scvp-vp-request',
703: 'spx' => 'audio/ogg',
704: 'src' => 'application/x-wais-source',
705: 'sru' => 'application/sru+xml',
706: 'srx' => 'application/sparql-results+xml',
707: 'sse' => 'application/vnd.kodak-descriptor',
708: 'ssf' => 'application/vnd.epson.ssf',
709: 'ssml' => 'application/ssml+xml',
710: 'st' => 'application/vnd.sailingtracker.track',
711: 'stc' => 'application/vnd.sun.xml.calc.template',
712: 'std' => 'application/vnd.sun.xml.draw.template',
713: 'stf' => 'application/vnd.wt.stf',
714: 'sti' => 'application/vnd.sun.xml.impress.template',
715: 'stk' => 'application/hyperstudio',
716: 'stl' => 'application/vnd.ms-pki.stl',
717: 'str' => 'application/vnd.pg.format',
718: 'stw' => 'application/vnd.sun.xml.writer.template',
719: 'sub' => 'image/vnd.dvb.subtitle',
720: 'sus' => 'application/vnd.sus-calendar',
721: 'susp' => 'application/vnd.sus-calendar',
722: 'sv4cpio' => 'application/x-sv4cpio',
723: 'sv4crc' => 'application/x-sv4crc',
724: 'svc' => 'application/vnd.dvb.service',
725: 'svd' => 'application/vnd.svd',
726: 'svg' => 'image/svg+xml',
727: 'svgz' => 'image/svg+xml',
728: 'swa' => 'application/x-director',
729: 'swf' => 'application/x-shockwave-flash',
730: 'swi' => 'application/vnd.aristanetworks.swi',
731: 'sxc' => 'application/vnd.sun.xml.calc',
732: 'sxd' => 'application/vnd.sun.xml.draw',
733: 'sxg' => 'application/vnd.sun.xml.writer.global',
734: 'sxi' => 'application/vnd.sun.xml.impress',
735: 'sxm' => 'application/vnd.sun.xml.math',
736: 'sxw' => 'application/vnd.sun.xml.writer',
737: 't' => 'text/troff',
738: 'tao' => 'application/vnd.tao.intent-module-archive',
739: 'tar' => 'application/x-tar',
740: 'tcap' => 'application/vnd.3gpp2.tcap',
741: 'tcl' => 'application/x-tcl',
742: 'teacher' => 'application/vnd.smart.teacher',
743: 'tei' => 'application/tei+xml',
744: 'teicorpus' => 'application/tei+xml',
745: 'tex' => 'application/x-tex',
746: 'texi' => 'application/x-texinfo',
747: 'texinfo' => 'application/x-texinfo',
748: 'text' => 'text/plain',
749: 'tfi' => 'application/thraud+xml',
750: 'tfm' => 'application/x-tex-tfm',
751: 'thmx' => 'application/vnd.ms-officetheme',
752: 'tif' => 'image/tiff',
753: 'tiff' => 'image/tiff',
754: 'tmo' => 'application/vnd.tmobile-livetv',
755: 'torrent' => 'application/x-bittorrent',
756: 'tpl' => 'application/vnd.groove-tool-template',
757: 'tpt' => 'application/vnd.trid.tpt',
758: 'tr' => 'text/troff',
759: 'tra' => 'application/vnd.trueapp',
760: 'trm' => 'application/x-msterminal',
761: 'tsd' => 'application/timestamped-data',
762: 'tsv' => 'text/tab-separated-values',
763: 'ttc' => 'application/x-font-ttf',
764: 'ttf' => 'application/x-font-ttf',
765: 'ttl' => 'text/turtle',
766: 'twd' => 'application/vnd.simtech-mindmapper',
767: 'twds' => 'application/vnd.simtech-mindmapper',
768: 'txd' => 'application/vnd.genomatix.tuxedo',
769: 'txf' => 'application/vnd.mobius.txf',
770: 'txt' => 'text/plain',
771: 'u32' => 'application/x-authorware-bin',
772: 'udeb' => 'application/x-debian-package',
773: 'ufd' => 'application/vnd.ufdl',
774: 'ufdl' => 'application/vnd.ufdl',
775: 'umj' => 'application/vnd.umajin',
776: 'unityweb' => 'application/vnd.unity',
777: 'uoml' => 'application/vnd.uoml+xml',
778: 'uri' => 'text/uri-list',
779: 'uris' => 'text/uri-list',
780: 'urls' => 'text/uri-list',
781: 'ustar' => 'application/x-ustar',
782: 'utz' => 'application/vnd.uiq.theme',
783: 'uu' => 'text/x-uuencode',
784: 'uva' => 'audio/vnd.dece.audio',
785: 'uvd' => 'application/vnd.dece.data',
786: 'uvf' => 'application/vnd.dece.data',
787: 'uvg' => 'image/vnd.dece.graphic',
788: 'uvh' => 'video/vnd.dece.hd',
789: 'uvi' => 'image/vnd.dece.graphic',
790: 'uvm' => 'video/vnd.dece.mobile',
791: 'uvp' => 'video/vnd.dece.pd',
792: 'uvs' => 'video/vnd.dece.sd',
793: 'uvt' => 'application/vnd.dece.ttml+xml',
794: 'uvu' => 'video/vnd.uvvu.mp4',
795: 'uvv' => 'video/vnd.dece.video',
796: 'uvva' => 'audio/vnd.dece.audio',
797: 'uvvd' => 'application/vnd.dece.data',
798: 'uvvf' => 'application/vnd.dece.data',
799: 'uvvg' => 'image/vnd.dece.graphic',
800: 'uvvh' => 'video/vnd.dece.hd',
801: 'uvvi' => 'image/vnd.dece.graphic',
802: 'uvvm' => 'video/vnd.dece.mobile',
803: 'uvvp' => 'video/vnd.dece.pd',
804: 'uvvs' => 'video/vnd.dece.sd',
805: 'uvvt' => 'application/vnd.dece.ttml+xml',
806: 'uvvu' => 'video/vnd.uvvu.mp4',
807: 'uvvv' => 'video/vnd.dece.video',
808: 'uvvx' => 'application/vnd.dece.unspecified',
809: 'uvx' => 'application/vnd.dece.unspecified',
810: 'vcd' => 'application/x-cdlink',
811: 'vcf' => 'text/x-vcard',
812: 'vcg' => 'application/vnd.groove-vcard',
813: 'vcs' => 'text/x-vcalendar',
814: 'vcx' => 'application/vnd.vcx',
815: 'vis' => 'application/vnd.visionary',
816: 'viv' => 'video/vnd.vivo',
817: 'vor' => 'application/vnd.stardivision.writer',
818: 'vox' => 'application/x-authorware-bin',
819: 'vrml' => 'model/vrml',
820: 'vsd' => 'application/vnd.visio',
821: 'vsf' => 'application/vnd.vsf',
822: 'vss' => 'application/vnd.visio',
823: 'vst' => 'application/vnd.visio',
824: 'vsw' => 'application/vnd.visio',
825: 'vtu' => 'model/vnd.vtu',
826: 'vxml' => 'application/voicexml+xml',
827: 'w3d' => 'application/x-director',
828: 'wad' => 'application/x-doom',
829: 'wav' => 'audio/x-wav',
830: 'wax' => 'audio/x-ms-wax',
831: 'wbmp' => 'image/vnd.wap.wbmp',
832: 'wbs' => 'application/vnd.criticaltools.wbs+xml',
833: 'wbxml' => 'application/vnd.wap.wbxml',
834: 'wcm' => 'application/vnd.ms-works',
835: 'wdb' => 'application/vnd.ms-works',
836: 'weba' => 'audio/webm',
837: 'webm' => 'video/webm',
838: 'webp' => 'image/webp',
839: 'wg' => 'application/vnd.pmi.widget',
840: 'wgt' => 'application/widget',
841: 'wks' => 'application/vnd.ms-works',
842: 'wm' => 'video/x-ms-wm',
843: 'wma' => 'audio/x-ms-wma',
844: 'wmd' => 'application/x-ms-wmd',
845: 'wmf' => 'application/x-msmetafile',
846: 'wml' => 'text/vnd.wap.wml',
847: 'wmlc' => 'application/vnd.wap.wmlc',
848: 'wmls' => 'text/vnd.wap.wmlscript',
849: 'wmlsc' => 'application/vnd.wap.wmlscriptc',
850: 'wmv' => 'video/x-ms-wmv',
851: 'wmx' => 'video/x-ms-wmx',
852: 'wmz' => 'application/x-ms-wmz',
853: 'woff' => 'application/x-font-woff',
854: 'wpd' => 'application/vnd.wordperfect',
855: 'wpl' => 'application/vnd.ms-wpl',
856: 'wps' => 'application/vnd.ms-works',
857: 'wqd' => 'application/vnd.wqd',
858: 'wri' => 'application/x-mswrite',
859: 'wrl' => 'model/vrml',
860: 'wsdl' => 'application/wsdl+xml',
861: 'wspolicy' => 'application/wspolicy+xml',
862: 'wtb' => 'application/vnd.webturbo',
863: 'wvx' => 'video/x-ms-wvx',
864: 'x32' => 'application/x-authorware-bin',
865: 'x3d' => 'application/vnd.hzn-3d-crossword',
866: 'xap' => 'application/x-silverlight-app',
867: 'xar' => 'application/vnd.xara',
868: 'xbap' => 'application/x-ms-xbap',
869: 'xbd' => 'application/vnd.fujixerox.docuworks.binder',
870: 'xbm' => 'image/x-xbitmap',
871: 'xdf' => 'application/xcap-diff+xml',
872: 'xdm' => 'application/vnd.syncml.dm+xml',
873: 'xdp' => 'application/vnd.adobe.xdp+xml',
874: 'xdssc' => 'application/dssc+xml',
875: 'xdw' => 'application/vnd.fujixerox.docuworks',
876: 'xenc' => 'application/xenc+xml',
877: 'xer' => 'application/patch-ops-error+xml',
878: 'xfdf' => 'application/vnd.adobe.xfdf',
879: 'xfdl' => 'application/vnd.xfdl',
880: 'xht' => 'application/xhtml+xml',
881: 'xhtml' => 'application/xhtml+xml',
882: 'xhvml' => 'application/xv+xml',
883: 'xif' => 'image/vnd.xiff',
884: 'xla' => 'application/vnd.ms-excel',
885: 'xlam' => 'application/vnd.ms-excel.addin.macroenabled.12',
886: 'xlc' => 'application/vnd.ms-excel',
887: 'xlm' => 'application/vnd.ms-excel',
888: 'xls' => 'application/vnd.ms-excel',
889: 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12',
890: 'xlsm' => 'application/vnd.ms-excel.sheet.macroenabled.12',
891: 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
892: 'xlt' => 'application/vnd.ms-excel',
893: 'xltm' => 'application/vnd.ms-excel.template.macroenabled.12',
894: 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
895: 'xlw' => 'application/vnd.ms-excel',
896: 'xml' => 'application/xml',
897: 'xo' => 'application/vnd.olpc-sugar',
898: 'xop' => 'application/xop+xml',
899: 'xpi' => 'application/x-xpinstall',
900: 'xpm' => 'image/x-xpixmap',
901: 'xpr' => 'application/vnd.is-xpr',
902: 'xps' => 'application/vnd.ms-xpsdocument',
903: 'xpw' => 'application/vnd.intercon.formnet',
904: 'xpx' => 'application/vnd.intercon.formnet',
905: 'xsl' => 'application/xml',
906: 'xslt' => 'application/xslt+xml',
907: 'xsm' => 'application/vnd.syncml+xml',
908: 'xspf' => 'application/xspf+xml',
909: 'xul' => 'application/vnd.mozilla.xul+xml',
910: 'xvm' => 'application/xv+xml',
911: 'xvml' => 'application/xv+xml',
912: 'xwd' => 'image/x-xwindowdump',
913: 'xyz' => 'chemical/x-xyz',
914: 'yaml' => 'text/yaml',
915: 'yang' => 'application/yang',
916: 'yin' => 'application/yin+xml',
917: 'yml' => 'text/yaml',
918: 'zaz' => 'application/vnd.zzazz.deck+xml',
919: 'zip' => 'application/zip',
920: 'zir' => 'application/vnd.zul',
921: 'zirz' => 'application/vnd.zul',
922: 'zmm' => 'application/vnd.handheld-entertainment+xml'
923: );
924:
925: 926: 927: 928: 929: 930:
931: public static function getInstance()
932: {
933: if (!self::$instance) {
934: self::$instance = new self();
935: }
936:
937: return self::$instance;
938: }
939:
940: 941: 942: 943: 944: 945: 946: 947:
948: public function fromExtension($extension)
949: {
950: return isset($this->mimetypes[$extension]) ? $this->mimetypes[$extension] : null;
951: }
952:
953: 954: 955: 956: 957: 958: 959:
960: public function fromFilename($filename)
961: {
962: return $this->fromExtension(pathinfo($filename, PATHINFO_EXTENSION));
963: }
964: }
965: