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