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