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