contentful-importer 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +6 -4
- data/bin/contentful-importer +10 -10
- data/contentful_importer.gemspec +2 -2
- data/lib/contentful/importer/cli.rb +15 -0
- data/lib/contentful/importer/configuration.rb +38 -0
- data/lib/{converters → contentful/importer/converters}/content_types_structure_creator.rb +1 -1
- data/lib/{converters → contentful/importer/converters}/contentful_model_to_json.rb +1 -1
- data/lib/contentful/importer/data_organizer.rb +119 -0
- data/lib/contentful/importer/json_schema_validator.rb +66 -0
- data/lib/contentful/importer/migrator.rb +43 -0
- data/lib/contentful/importer/mime_content_type.rb +566 -0
- data/lib/contentful/importer/parallel_importer.rb +432 -0
- data/lib/contentful/importer/version.rb +5 -0
- data/spec/lib/configuration_spec.rb +16 -14
- data/spec/lib/importer/parallel_importer_spec.rb +151 -149
- data/spec/lib/json_schema_validator_spec.rb +50 -48
- data/spec/lib/migrator_spec.rb +86 -82
- data/spec/support/shared_configuration.rb +2 -2
- metadata +13 -12
- data/lib/cli.rb +0 -13
- data/lib/configuration.rb +0 -36
- data/lib/importer/data_organizer.rb +0 -117
- data/lib/importer/mime_content_type.rb +0 -564
- data/lib/importer/parallel_importer.rb +0 -430
- data/lib/json_schema_validator.rb +0 -64
- data/lib/migrator.rb +0 -39
- data/lib/version.rb +0 -3
@@ -0,0 +1,566 @@
|
|
1
|
+
module Contentful
|
2
|
+
module Importer
|
3
|
+
class MimeContentType
|
4
|
+
EXTENSION_LIST = {'.323' => 'text/h323',
|
5
|
+
'.3g2' => 'video/3gpp2',
|
6
|
+
'.3gp' => 'video/3gpp',
|
7
|
+
'.3gp2' => 'video/3gpp2',
|
8
|
+
'.3gpp' => 'video/3gpp',
|
9
|
+
'.7z' => 'application/x-7z-compressed',
|
10
|
+
'.aa' => 'audio/audible',
|
11
|
+
'.AAC' => 'audio/aac',
|
12
|
+
'.aaf' => 'application/octet-stream',
|
13
|
+
'.aax' => 'audio/vnd.audible.aax',
|
14
|
+
'.ac3' => 'audio/ac3',
|
15
|
+
'.aca' => 'application/octet-stream',
|
16
|
+
'.accda' => 'application/msaccess.addin',
|
17
|
+
'.accdb' => 'application/msaccess',
|
18
|
+
'.accdc' => 'application/msaccess.cab',
|
19
|
+
'.accde' => 'application/msaccess',
|
20
|
+
'.accdr' => 'application/msaccess.runtime',
|
21
|
+
'.accdt' => 'application/msaccess',
|
22
|
+
'.accdw' => 'application/msaccess.webapplication',
|
23
|
+
'.accft' => 'application/msaccess.ftemplate',
|
24
|
+
'.acx' => 'application/internet-property-stream',
|
25
|
+
'.AddIn' => 'text/xml',
|
26
|
+
'.ade' => 'application/msaccess',
|
27
|
+
'.adobebridge' => 'application/x-bridge-url',
|
28
|
+
'.adp' => 'application/msaccess',
|
29
|
+
'.ADT' => 'audio/vnd.dlna.adts',
|
30
|
+
'.ADTS' => 'audio/aac',
|
31
|
+
'.afm' => 'application/octet-stream',
|
32
|
+
'.ai' => 'application/postscript',
|
33
|
+
'.aif' => 'audio/x-aiff',
|
34
|
+
'.aifc' => 'audio/aiff',
|
35
|
+
'.aiff' => 'audio/aiff',
|
36
|
+
'.air' => 'application/vnd.adobe.air-application-installer-package+zip',
|
37
|
+
'.amc' => 'application/x-mpeg',
|
38
|
+
'.application' => 'application/x-ms-application',
|
39
|
+
'.art' => 'image/x-jg',
|
40
|
+
'.asa' => 'application/xml',
|
41
|
+
'.asax' => 'application/xml',
|
42
|
+
'.ascx' => 'application/xml',
|
43
|
+
'.asd' => 'application/octet-stream',
|
44
|
+
'.asf' => 'video/x-ms-asf',
|
45
|
+
'.ashx' => 'application/xml',
|
46
|
+
'.asi' => 'application/octet-stream',
|
47
|
+
'.asm' => 'text/plain',
|
48
|
+
'.asmx' => 'application/xml',
|
49
|
+
'.aspx' => 'application/xml',
|
50
|
+
'.asr' => 'video/x-ms-asf',
|
51
|
+
'.asx' => 'video/x-ms-asf',
|
52
|
+
'.atom' => 'application/atom+xml',
|
53
|
+
'.au' => 'audio/basic',
|
54
|
+
'.avi' => 'video/x-msvideo',
|
55
|
+
'.axs' => 'application/olescript',
|
56
|
+
'.bas' => 'text/plain',
|
57
|
+
'.bcpio' => 'application/x-bcpio',
|
58
|
+
'.bin' => 'application/octet-stream',
|
59
|
+
'.bmp' => 'image/bmp',
|
60
|
+
'.c' => 'text/plain',
|
61
|
+
'.cab' => 'application/octet-stream',
|
62
|
+
'.caf' => 'audio/x-caf',
|
63
|
+
'.calx' => 'application/vnd.ms-office.calx',
|
64
|
+
'.cat' => 'application/vnd.ms-pki.seccat',
|
65
|
+
'.cc' => 'text/plain',
|
66
|
+
'.cd' => 'text/plain',
|
67
|
+
'.cdda' => 'audio/aiff',
|
68
|
+
'.cdf' => 'application/x-cdf',
|
69
|
+
'.cer' => 'application/x-x509-ca-cert',
|
70
|
+
'.chm' => 'application/octet-stream',
|
71
|
+
'.class' => 'application/x-java-applet',
|
72
|
+
'.clp' => 'application/x-msclip',
|
73
|
+
'.cmx' => 'image/x-cmx',
|
74
|
+
'.cnf' => 'text/plain',
|
75
|
+
'.cod' => 'image/cis-cod',
|
76
|
+
'.config' => 'application/xml',
|
77
|
+
'.contact' => 'text/x-ms-contact',
|
78
|
+
'.coverage' => 'application/xml',
|
79
|
+
'.cpio' => 'application/x-cpio',
|
80
|
+
'.cpp' => 'text/plain',
|
81
|
+
'.crd' => 'application/x-mscardfile',
|
82
|
+
'.crl' => 'application/pkix-crl',
|
83
|
+
'.crt' => 'application/x-x509-ca-cert',
|
84
|
+
'.cs' => 'text/plain',
|
85
|
+
'.csdproj' => 'text/plain',
|
86
|
+
'.csh' => 'application/x-csh',
|
87
|
+
'.csproj' => 'text/plain',
|
88
|
+
'.css' => 'text/css',
|
89
|
+
'.csv' => 'text/csv',
|
90
|
+
'.cur' => 'application/octet-stream',
|
91
|
+
'.cxx' => 'text/plain',
|
92
|
+
'.dat' => 'application/octet-stream',
|
93
|
+
'.datasource' => 'application/xml',
|
94
|
+
'.dbproj' => 'text/plain',
|
95
|
+
'.dcr' => 'application/x-director',
|
96
|
+
'.def' => 'text/plain',
|
97
|
+
'.deploy' => 'application/octet-stream',
|
98
|
+
'.der' => 'application/x-x509-ca-cert',
|
99
|
+
'.dgml' => 'application/xml',
|
100
|
+
'.dib' => 'image/bmp',
|
101
|
+
'.dif' => 'video/x-dv',
|
102
|
+
'.dir' => 'application/x-director',
|
103
|
+
'.disco' => 'text/xml',
|
104
|
+
'.dll' => 'application/x-msdownload',
|
105
|
+
'.dll.config' => 'text/xml',
|
106
|
+
'.dlm' => 'text/dlm',
|
107
|
+
'.doc' => 'application/msword',
|
108
|
+
'.docm' => 'application/vnd.ms-word.document.macroEnabled.12',
|
109
|
+
'.docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
110
|
+
'.dot' => 'application/msword',
|
111
|
+
'.dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
|
112
|
+
'.dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
|
113
|
+
'.dsp' => 'application/octet-stream',
|
114
|
+
'.dsw' => 'text/plain',
|
115
|
+
'.dtd' => 'text/xml',
|
116
|
+
'.dtsConfig' => 'text/xml',
|
117
|
+
'.dv' => 'video/x-dv',
|
118
|
+
'.dvi' => 'application/x-dvi',
|
119
|
+
'.dwf' => 'drawing/x-dwf',
|
120
|
+
'.dwp' => 'application/octet-stream',
|
121
|
+
'.dxr' => 'application/x-director',
|
122
|
+
'.eml' => 'message/rfc822',
|
123
|
+
'.emz' => 'application/octet-stream',
|
124
|
+
'.eot' => 'application/octet-stream',
|
125
|
+
'.eps' => 'application/postscript',
|
126
|
+
'.etl' => 'application/etl',
|
127
|
+
'.etx' => 'text/x-setext',
|
128
|
+
'.evy' => 'application/envoy',
|
129
|
+
'.exe' => 'application/octet-stream',
|
130
|
+
'.exe.config' => 'text/xml',
|
131
|
+
'.fdf' => 'application/vnd.fdf',
|
132
|
+
'.fif' => 'application/fractals',
|
133
|
+
'.filters' => 'Application/xml',
|
134
|
+
'.fla' => 'application/octet-stream',
|
135
|
+
'.flr' => 'x-world/x-vrml',
|
136
|
+
'.flv' => 'video/x-flv',
|
137
|
+
'.fsscript' => 'application/fsharp-script',
|
138
|
+
'.fsx' => 'application/fsharp-script',
|
139
|
+
'.generictest' => 'application/xml',
|
140
|
+
'.gif' => 'image/gif',
|
141
|
+
'.group' => 'text/x-ms-group',
|
142
|
+
'.gsm' => 'audio/x-gsm',
|
143
|
+
'.gtar' => 'application/x-gtar',
|
144
|
+
'.gz' => 'application/x-gzip',
|
145
|
+
'.h' => 'text/plain',
|
146
|
+
'.hdf' => 'application/x-hdf',
|
147
|
+
'.hdml' => 'text/x-hdml',
|
148
|
+
'.hhc' => 'application/x-oleobject',
|
149
|
+
'.hhk' => 'application/octet-stream',
|
150
|
+
'.hhp' => 'application/octet-stream',
|
151
|
+
'.hlp' => 'application/winhlp',
|
152
|
+
'.hpp' => 'text/plain',
|
153
|
+
'.hqx' => 'application/mac-binhex40',
|
154
|
+
'.hta' => 'application/hta',
|
155
|
+
'.htc' => 'text/x-component',
|
156
|
+
'.htm' => 'text/html',
|
157
|
+
'.html' => 'text/html',
|
158
|
+
'.htt' => 'text/webviewhtml',
|
159
|
+
'.hxa' => 'application/xml',
|
160
|
+
'.hxc' => 'application/xml',
|
161
|
+
'.hxd' => 'application/octet-stream',
|
162
|
+
'.hxe' => 'application/xml',
|
163
|
+
'.hxf' => 'application/xml',
|
164
|
+
'.hxh' => 'application/octet-stream',
|
165
|
+
'.hxi' => 'application/octet-stream',
|
166
|
+
'.hxk' => 'application/xml',
|
167
|
+
'.hxq' => 'application/octet-stream',
|
168
|
+
'.hxr' => 'application/octet-stream',
|
169
|
+
'.hxs' => 'application/octet-stream',
|
170
|
+
'.hxt' => 'text/html',
|
171
|
+
'.hxv' => 'application/xml',
|
172
|
+
'.hxw' => 'application/octet-stream',
|
173
|
+
'.hxx' => 'text/plain',
|
174
|
+
'.i' => 'text/plain',
|
175
|
+
'.ico' => 'image/x-icon',
|
176
|
+
'.ics' => 'application/octet-stream',
|
177
|
+
'.idl' => 'text/plain',
|
178
|
+
'.ief' => 'image/ief',
|
179
|
+
'.iii' => 'application/x-iphone',
|
180
|
+
'.inc' => 'text/plain',
|
181
|
+
'.inf' => 'application/octet-stream',
|
182
|
+
'.inl' => 'text/plain',
|
183
|
+
'.ins' => 'application/x-internet-signup',
|
184
|
+
'.ipa' => 'application/x-itunes-ipa',
|
185
|
+
'.ipg' => 'application/x-itunes-ipg',
|
186
|
+
'.ipproj' => 'text/plain',
|
187
|
+
'.ipsw' => 'application/x-itunes-ipsw',
|
188
|
+
'.iqy' => 'text/x-ms-iqy',
|
189
|
+
'.isp' => 'application/x-internet-signup',
|
190
|
+
'.ite' => 'application/x-itunes-ite',
|
191
|
+
'.itlp' => 'application/x-itunes-itlp',
|
192
|
+
'.itms' => 'application/x-itunes-itms',
|
193
|
+
'.itpc' => 'application/x-itunes-itpc',
|
194
|
+
'.IVF' => 'video/x-ivf',
|
195
|
+
'.jar' => 'application/java-archive',
|
196
|
+
'.java' => 'application/octet-stream',
|
197
|
+
'.jck' => 'application/liquidmotion',
|
198
|
+
'.jcz' => 'application/liquidmotion',
|
199
|
+
'.jfif' => 'image/pjpeg',
|
200
|
+
'.jnlp' => 'application/x-java-jnlp-file',
|
201
|
+
'.jpb' => 'application/octet-stream',
|
202
|
+
'.jpe' => 'image/jpeg',
|
203
|
+
'.jpeg' => 'image/jpeg',
|
204
|
+
'.jpg' => 'image/jpeg',
|
205
|
+
'.js' => 'application/x-javascript',
|
206
|
+
'.jsx' => 'text/jscript',
|
207
|
+
'.jsxbin' => 'text/plain',
|
208
|
+
'.latex' => 'application/x-latex',
|
209
|
+
'.library-ms' => 'application/windows-library+xml',
|
210
|
+
'.lit' => 'application/x-ms-reader',
|
211
|
+
'.loadtest' => 'application/xml',
|
212
|
+
'.lpk' => 'application/octet-stream',
|
213
|
+
'.lsf' => 'video/x-la-asf',
|
214
|
+
'.lst' => 'text/plain',
|
215
|
+
'.lsx' => 'video/x-la-asf',
|
216
|
+
'.lzh' => 'application/octet-stream',
|
217
|
+
'.m13' => 'application/x-msmediaview',
|
218
|
+
'.m14' => 'application/x-msmediaview',
|
219
|
+
'.m1v' => 'video/mpeg',
|
220
|
+
'.m2t' => 'video/vnd.dlna.mpeg-tts',
|
221
|
+
'.m2ts' => 'video/vnd.dlna.mpeg-tts',
|
222
|
+
'.m2v' => 'video/mpeg',
|
223
|
+
'.m3u' => 'audio/x-mpegurl',
|
224
|
+
'.m3u8' => 'audio/x-mpegurl',
|
225
|
+
'.m4a' => 'audio/m4a',
|
226
|
+
'.m4b' => 'audio/m4b',
|
227
|
+
'.m4p' => 'audio/m4p',
|
228
|
+
'.m4r' => 'audio/x-m4r',
|
229
|
+
'.m4v' => 'video/x-m4v',
|
230
|
+
'.mac' => 'image/x-macpaint',
|
231
|
+
'.mak' => 'text/plain',
|
232
|
+
'.man' => 'application/x-troff-man',
|
233
|
+
'.manifest' => 'application/x-ms-manifest',
|
234
|
+
'.map' => 'text/plain',
|
235
|
+
'.master' => 'application/xml',
|
236
|
+
'.mda' => 'application/msaccess',
|
237
|
+
'.mdb' => 'application/x-msaccess',
|
238
|
+
'.mde' => 'application/msaccess',
|
239
|
+
'.mdp' => 'application/octet-stream',
|
240
|
+
'.me' => 'application/x-troff-me',
|
241
|
+
'.mfp' => 'application/x-shockwave-flash',
|
242
|
+
'.mht' => 'message/rfc822',
|
243
|
+
'.mhtml' => 'message/rfc822',
|
244
|
+
'.mid' => 'audio/mid',
|
245
|
+
'.midi' => 'audio/mid',
|
246
|
+
'.mix' => 'application/octet-stream',
|
247
|
+
'.mk' => 'text/plain',
|
248
|
+
'.mmf' => 'application/x-smaf',
|
249
|
+
'.mno' => 'text/xml',
|
250
|
+
'.mny' => 'application/x-msmoney',
|
251
|
+
'.mod' => 'video/mpeg',
|
252
|
+
'.mov' => 'video/quicktime',
|
253
|
+
'.movie' => 'video/x-sgi-movie',
|
254
|
+
'.mp2' => 'video/mpeg',
|
255
|
+
'.mp2v' => 'video/mpeg',
|
256
|
+
'.mp3' => 'audio/mpeg',
|
257
|
+
'.mp4' => 'video/mp4',
|
258
|
+
'.mp4v' => 'video/mp4',
|
259
|
+
'.mpa' => 'video/mpeg',
|
260
|
+
'.mpe' => 'video/mpeg',
|
261
|
+
'.mpeg' => 'video/mpeg',
|
262
|
+
'.mpf' => 'application/vnd.ms-mediapackage',
|
263
|
+
'.mpg' => 'video/mpeg',
|
264
|
+
'.mpp' => 'application/vnd.ms-project',
|
265
|
+
'.mpv2' => 'video/mpeg',
|
266
|
+
'.mqv' => 'video/quicktime',
|
267
|
+
'.ms' => 'application/x-troff-ms',
|
268
|
+
'.msi' => 'application/octet-stream',
|
269
|
+
'.mso' => 'application/octet-stream',
|
270
|
+
'.mts' => 'video/vnd.dlna.mpeg-tts',
|
271
|
+
'.mtx' => 'application/xml',
|
272
|
+
'.mvb' => 'application/x-msmediaview',
|
273
|
+
'.mvc' => 'application/x-miva-compiled',
|
274
|
+
'.mxp' => 'application/x-mmxp',
|
275
|
+
'.nc' => 'application/x-netcdf',
|
276
|
+
'.nsc' => 'video/x-ms-asf',
|
277
|
+
'.nws' => 'message/rfc822',
|
278
|
+
'.ocx' => 'application/octet-stream',
|
279
|
+
'.oda' => 'application/oda',
|
280
|
+
'.odc' => 'text/x-ms-odc',
|
281
|
+
'.odh' => 'text/plain',
|
282
|
+
'.odl' => 'text/plain',
|
283
|
+
'.odp' => 'application/vnd.oasis.opendocument.presentation',
|
284
|
+
'.ods' => 'application/oleobject',
|
285
|
+
'.odt' => 'application/vnd.oasis.opendocument.text',
|
286
|
+
'.one' => 'application/onenote',
|
287
|
+
'.onea' => 'application/onenote',
|
288
|
+
'.onepkg' => 'application/onenote',
|
289
|
+
'.onetmp' => 'application/onenote',
|
290
|
+
'.onetoc' => 'application/onenote',
|
291
|
+
'.onetoc2' => 'application/onenote',
|
292
|
+
'.orderedtest' => 'application/xml',
|
293
|
+
'.osdx' => 'application/opensearchdescription+xml',
|
294
|
+
'.p10' => 'application/pkcs10',
|
295
|
+
'.p12' => 'application/x-pkcs12',
|
296
|
+
'.p7b' => 'application/x-pkcs7-certificates',
|
297
|
+
'.p7c' => 'application/pkcs7-mime',
|
298
|
+
'.p7m' => 'application/pkcs7-mime',
|
299
|
+
'.p7r' => 'application/x-pkcs7-certreqresp',
|
300
|
+
'.p7s' => 'application/pkcs7-signature',
|
301
|
+
'.pbm' => 'image/x-portable-bitmap',
|
302
|
+
'.pcast' => 'application/x-podcast',
|
303
|
+
'.pct' => 'image/pict',
|
304
|
+
'.pcx' => 'application/octet-stream',
|
305
|
+
'.pcz' => 'application/octet-stream',
|
306
|
+
'.pdf' => 'application/pdf',
|
307
|
+
'.pfb' => 'application/octet-stream',
|
308
|
+
'.pfm' => 'application/octet-stream',
|
309
|
+
'.pfx' => 'application/x-pkcs12',
|
310
|
+
'.pgm' => 'image/x-portable-graymap',
|
311
|
+
'.pic' => 'image/pict',
|
312
|
+
'.pict' => 'image/pict',
|
313
|
+
'.pkgdef' => 'text/plain',
|
314
|
+
'.pkgundef' => 'text/plain',
|
315
|
+
'.pko' => 'application/vnd.ms-pki.pko',
|
316
|
+
'.pls' => 'audio/scpls',
|
317
|
+
'.pma' => 'application/x-perfmon',
|
318
|
+
'.pmc' => 'application/x-perfmon',
|
319
|
+
'.pml' => 'application/x-perfmon',
|
320
|
+
'.pmr' => 'application/x-perfmon',
|
321
|
+
'.pmw' => 'application/x-perfmon',
|
322
|
+
'.png' => 'image/png',
|
323
|
+
'.pnm' => 'image/x-portable-anymap',
|
324
|
+
'.pnt' => 'image/x-macpaint',
|
325
|
+
'.pntg' => 'image/x-macpaint',
|
326
|
+
'.pnz' => 'image/png',
|
327
|
+
'.pot' => 'application/vnd.ms-powerpoint',
|
328
|
+
'.potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
|
329
|
+
'.potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
|
330
|
+
'.ppa' => 'application/vnd.ms-powerpoint',
|
331
|
+
'.ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
|
332
|
+
'.ppm' => 'image/x-portable-pixmap',
|
333
|
+
'.pps' => 'application/vnd.ms-powerpoint',
|
334
|
+
'.ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
|
335
|
+
'.ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
|
336
|
+
'.ppt' => 'application/vnd.ms-powerpoint',
|
337
|
+
'.pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
|
338
|
+
'.pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
339
|
+
'.prf' => 'application/pics-rules',
|
340
|
+
'.prm' => 'application/octet-stream',
|
341
|
+
'.prx' => 'application/octet-stream',
|
342
|
+
'.ps' => 'application/postscript',
|
343
|
+
'.psc1' => 'application/PowerShell',
|
344
|
+
'.psd' => 'application/octet-stream',
|
345
|
+
'.psess' => 'application/xml',
|
346
|
+
'.psm' => 'application/octet-stream',
|
347
|
+
'.psp' => 'application/octet-stream',
|
348
|
+
'.pub' => 'application/x-mspublisher',
|
349
|
+
'.pwz' => 'application/vnd.ms-powerpoint',
|
350
|
+
'.qht' => 'text/x-html-insertion',
|
351
|
+
'.qhtm' => 'text/x-html-insertion',
|
352
|
+
'.qt' => 'video/quicktime',
|
353
|
+
'.qti' => 'image/x-quicktime',
|
354
|
+
'.qtif' => 'image/x-quicktime',
|
355
|
+
'.qtl' => 'application/x-quicktimeplayer',
|
356
|
+
'.qxd' => 'application/octet-stream',
|
357
|
+
'.ra' => 'audio/x-pn-realaudio',
|
358
|
+
'.ram' => 'audio/x-pn-realaudio',
|
359
|
+
'.rar' => 'application/octet-stream',
|
360
|
+
'.ras' => 'image/x-cmu-raster',
|
361
|
+
'.rat' => 'application/rat-file',
|
362
|
+
'.rc' => 'text/plain',
|
363
|
+
'.rc2' => 'text/plain',
|
364
|
+
'.rct' => 'text/plain',
|
365
|
+
'.rdlc' => 'application/xml',
|
366
|
+
'.resx' => 'application/xml',
|
367
|
+
'.rf' => 'image/vnd.rn-realflash',
|
368
|
+
'.rgb' => 'image/x-rgb',
|
369
|
+
'.rgs' => 'text/plain',
|
370
|
+
'.rm' => 'application/vnd.rn-realmedia',
|
371
|
+
'.rmi' => 'audio/mid',
|
372
|
+
'.rmp' => 'application/vnd.rn-rn_music_package',
|
373
|
+
'.roff' => 'application/x-troff',
|
374
|
+
'.rpm' => 'audio/x-pn-realaudio-plugin',
|
375
|
+
'.rqy' => 'text/x-ms-rqy',
|
376
|
+
'.rtf' => 'application/rtf',
|
377
|
+
'.rtx' => 'text/richtext',
|
378
|
+
'.ruleset' => 'application/xml',
|
379
|
+
'.s' => 'text/plain',
|
380
|
+
'.safariextz' => 'application/x-safari-safariextz',
|
381
|
+
'.scd' => 'application/x-msschedule',
|
382
|
+
'.sct' => 'text/scriptlet',
|
383
|
+
'.sd2' => 'audio/x-sd2',
|
384
|
+
'.sdp' => 'application/sdp',
|
385
|
+
'.sea' => 'application/octet-stream',
|
386
|
+
'.searchConnector-ms' => 'application/windows-search-connector+xml',
|
387
|
+
'.setpay' => 'application/set-payment-initiation',
|
388
|
+
'.setreg' => 'application/set-registration-initiation',
|
389
|
+
'.settings' => 'application/xml',
|
390
|
+
'.sgimb' => 'application/x-sgimb',
|
391
|
+
'.sgml' => 'text/sgml',
|
392
|
+
'.sh' => 'application/x-sh',
|
393
|
+
'.shar' => 'application/x-shar',
|
394
|
+
'.shtml' => 'text/html',
|
395
|
+
'.sit' => 'application/x-stuffit',
|
396
|
+
'.sitemap' => 'application/xml',
|
397
|
+
'.skin' => 'application/xml',
|
398
|
+
'.sldm' => 'application/vnd.ms-powerpoint.slide.macroEnabled.12',
|
399
|
+
'.sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
|
400
|
+
'.slk' => 'application/vnd.ms-excel',
|
401
|
+
'.sln' => 'text/plain',
|
402
|
+
'.slupkg-ms' => 'application/x-ms-license',
|
403
|
+
'.smd' => 'audio/x-smd',
|
404
|
+
'.smi' => 'application/octet-stream',
|
405
|
+
'.smx' => 'audio/x-smd',
|
406
|
+
'.smz' => 'audio/x-smd',
|
407
|
+
'.snd' => 'audio/basic',
|
408
|
+
'.snippet' => 'application/xml',
|
409
|
+
'.snp' => 'application/octet-stream',
|
410
|
+
'.sol' => 'text/plain',
|
411
|
+
'.sor' => 'text/plain',
|
412
|
+
'.spc' => 'application/x-pkcs7-certificates',
|
413
|
+
'.spl' => 'application/futuresplash',
|
414
|
+
'.src' => 'application/x-wais-source',
|
415
|
+
'.srf' => 'text/plain',
|
416
|
+
'.SSISDeploymentManifest' => 'text/xml',
|
417
|
+
'.ssm' => 'application/streamingmedia',
|
418
|
+
'.sst' => 'application/vnd.ms-pki.certstore',
|
419
|
+
'.stl' => 'application/vnd.ms-pki.stl',
|
420
|
+
'.sv4cpio' => 'application/x-sv4cpio',
|
421
|
+
'.sv4crc' => 'application/x-sv4crc',
|
422
|
+
'.svc' => 'application/xml',
|
423
|
+
'.swf' => 'application/x-shockwave-flash',
|
424
|
+
'.t' => 'application/x-troff',
|
425
|
+
'.tar' => 'application/x-tar',
|
426
|
+
'.tcl' => 'application/x-tcl',
|
427
|
+
'.testrunconfig' => 'application/xml',
|
428
|
+
'.testsettings' => 'application/xml',
|
429
|
+
'.tex' => 'application/x-tex',
|
430
|
+
'.texi' => 'application/x-texinfo',
|
431
|
+
'.texinfo' => 'application/x-texinfo',
|
432
|
+
'.tgz' => 'application/x-compressed',
|
433
|
+
'.thmx' => 'application/vnd.ms-officetheme',
|
434
|
+
'.thn' => 'application/octet-stream',
|
435
|
+
'.tif' => 'image/tiff',
|
436
|
+
'.tiff' => 'image/tiff',
|
437
|
+
'.tlh' => 'text/plain',
|
438
|
+
'.tli' => 'text/plain',
|
439
|
+
'.toc' => 'application/octet-stream',
|
440
|
+
'.tr' => 'application/x-troff',
|
441
|
+
'.trm' => 'application/x-msterminal',
|
442
|
+
'.trx' => 'application/xml',
|
443
|
+
'.ts' => 'video/vnd.dlna.mpeg-tts',
|
444
|
+
'.tsv' => 'text/tab-separated-values',
|
445
|
+
'.ttf' => 'application/octet-stream',
|
446
|
+
'.tts' => 'video/vnd.dlna.mpeg-tts',
|
447
|
+
'.txt' => 'text/plain',
|
448
|
+
'.u32' => 'application/octet-stream',
|
449
|
+
'.uls' => 'text/iuls',
|
450
|
+
'.user' => 'text/plain',
|
451
|
+
'.ustar' => 'application/x-ustar',
|
452
|
+
'.vb' => 'text/plain',
|
453
|
+
'.vbdproj' => 'text/plain',
|
454
|
+
'.vbk' => 'video/mpeg',
|
455
|
+
'.vbproj' => 'text/plain',
|
456
|
+
'.vbs' => 'text/vbscript',
|
457
|
+
'.vcf' => 'text/x-vcard',
|
458
|
+
'.vcproj' => 'Application/xml',
|
459
|
+
'.vcs' => 'text/plain',
|
460
|
+
'.vcxproj' => 'Application/xml',
|
461
|
+
'.vddproj' => 'text/plain',
|
462
|
+
'.vdp' => 'text/plain',
|
463
|
+
'.vdproj' => 'text/plain',
|
464
|
+
'.vdx' => 'application/vnd.ms-visio.viewer',
|
465
|
+
'.vml' => 'text/xml',
|
466
|
+
'.vscontent' => 'application/xml',
|
467
|
+
'.vsct' => 'text/xml',
|
468
|
+
'.vsd' => 'application/vnd.visio',
|
469
|
+
'.vsi' => 'application/ms-vsi',
|
470
|
+
'.vsix' => 'application/vsix',
|
471
|
+
'.vsixlangpack' => 'text/xml',
|
472
|
+
'.vsixmanifest' => 'text/xml',
|
473
|
+
'.vsmdi' => 'application/xml',
|
474
|
+
'.vspscc' => 'text/plain',
|
475
|
+
'.vss' => 'application/vnd.visio',
|
476
|
+
'.vsscc' => 'text/plain',
|
477
|
+
'.vssettings' => 'text/xml',
|
478
|
+
'.vssscc' => 'text/plain',
|
479
|
+
'.vst' => 'application/vnd.visio',
|
480
|
+
'.vstemplate' => 'text/xml',
|
481
|
+
'.vsto' => 'application/x-ms-vsto',
|
482
|
+
'.vsw' => 'application/vnd.visio',
|
483
|
+
'.vsx' => 'application/vnd.visio',
|
484
|
+
'.vtx' => 'application/vnd.visio',
|
485
|
+
'.wav' => 'audio/wav',
|
486
|
+
'.wave' => 'audio/wav',
|
487
|
+
'.wax' => 'audio/x-ms-wax',
|
488
|
+
'.wbk' => 'application/msword',
|
489
|
+
'.wbmp' => 'image/vnd.wap.wbmp',
|
490
|
+
'.wcm' => 'application/vnd.ms-works',
|
491
|
+
'.wdb' => 'application/vnd.ms-works',
|
492
|
+
'.wdp' => 'image/vnd.ms-photo',
|
493
|
+
'.webarchive' => 'application/x-safari-webarchive',
|
494
|
+
'.webtest' => 'application/xml',
|
495
|
+
'.wiq' => 'application/xml',
|
496
|
+
'.wiz' => 'application/msword',
|
497
|
+
'.wks' => 'application/vnd.ms-works',
|
498
|
+
'.WLMP' => 'application/wlmoviemaker',
|
499
|
+
'.wlpginstall' => 'application/x-wlpg-detect',
|
500
|
+
'.wlpginstall3' => 'application/x-wlpg3-detect',
|
501
|
+
'.wm' => 'video/x-ms-wm',
|
502
|
+
'.wma' => 'audio/x-ms-wma',
|
503
|
+
'.wmd' => 'application/x-ms-wmd',
|
504
|
+
'.wmf' => 'application/x-msmetafile',
|
505
|
+
'.wml' => 'text/vnd.wap.wml',
|
506
|
+
'.wmlc' => 'application/vnd.wap.wmlc',
|
507
|
+
'.wmls' => 'text/vnd.wap.wmlscript',
|
508
|
+
'.wmlsc' => 'application/vnd.wap.wmlscriptc',
|
509
|
+
'.wmp' => 'video/x-ms-wmp',
|
510
|
+
'.wmv' => 'video/x-ms-wmv',
|
511
|
+
'.wmx' => 'video/x-ms-wmx',
|
512
|
+
'.wmz' => 'application/x-ms-wmz',
|
513
|
+
'.wpl' => 'application/vnd.ms-wpl',
|
514
|
+
'.wps' => 'application/vnd.ms-works',
|
515
|
+
'.wri' => 'application/x-mswrite',
|
516
|
+
'.wrl' => 'x-world/x-vrml',
|
517
|
+
'.wrz' => 'x-world/x-vrml',
|
518
|
+
'.wsc' => 'text/scriptlet',
|
519
|
+
'.wsdl' => 'text/xml',
|
520
|
+
'.wvx' => 'video/x-ms-wvx',
|
521
|
+
'.x' => 'application/directx',
|
522
|
+
'.xaf' => 'x-world/x-vrml',
|
523
|
+
'.xaml' => 'application/xaml+xml',
|
524
|
+
'.xap' => 'application/x-silverlight-app',
|
525
|
+
'.xbap' => 'application/x-ms-xbap',
|
526
|
+
'.xbm' => 'image/x-xbitmap',
|
527
|
+
'.xdr' => 'text/plain',
|
528
|
+
'.xht' => 'application/xhtml+xml',
|
529
|
+
'.xhtml' => 'application/xhtml+xml',
|
530
|
+
'.xla' => 'application/vnd.ms-excel',
|
531
|
+
'.xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12',
|
532
|
+
'.xlc' => 'application/vnd.ms-excel',
|
533
|
+
'.xld' => 'application/vnd.ms-excel',
|
534
|
+
'.xlk' => 'application/vnd.ms-excel',
|
535
|
+
'.xll' => 'application/vnd.ms-excel',
|
536
|
+
'.xlm' => 'application/vnd.ms-excel',
|
537
|
+
'.xls' => 'application/vnd.ms-excel',
|
538
|
+
'.xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
|
539
|
+
'.xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
|
540
|
+
'.xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
541
|
+
'.xlt' => 'application/vnd.ms-excel',
|
542
|
+
'.xltm' => 'application/vnd.ms-excel.template.macroEnabled.12',
|
543
|
+
'.xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
|
544
|
+
'.xlw' => 'application/vnd.ms-excel',
|
545
|
+
'.xml' => 'text/xml',
|
546
|
+
'.xmta' => 'application/xml',
|
547
|
+
'.xof' => 'x-world/x-vrml',
|
548
|
+
'.XOML' => 'text/plain',
|
549
|
+
'.xpm' => 'image/x-xpixmap',
|
550
|
+
'.xps' => 'application/vnd.ms-xpsdocument',
|
551
|
+
'.xrm-ms' => 'text/xml',
|
552
|
+
'.xsc' => 'application/xml',
|
553
|
+
'.xsd' => 'text/xml',
|
554
|
+
'.xsf' => 'text/xml',
|
555
|
+
'.xsl' => 'text/xml',
|
556
|
+
'.xslt' => 'text/xml',
|
557
|
+
'.xsn' => 'application/octet-stream',
|
558
|
+
'.xss' => 'application/xml',
|
559
|
+
'.xtp' => 'application/octet-stream',
|
560
|
+
'.xwd' => 'image/x-xwindowdump',
|
561
|
+
'.z' => 'application/x-compress',
|
562
|
+
'.zip' => 'application/x-zip-compressed'
|
563
|
+
}
|
564
|
+
end
|
565
|
+
end
|
566
|
+
end
|