各种类型文件的Content Type

转载 2016年03月24日 11:14:06
15  CONTENT_TYPE = { 
 16      '.load': 'text/html', 
 17      '.123': 'application/vnd.lotus-1-2-3', 
 18      '.3ds': 'image/x-3ds', 
 19      '.3g2': 'video/3gpp', 
 20      '.3ga': 'video/3gpp', 
 21      '.3gp': 'video/3gpp', 
 22      '.3gpp': 'video/3gpp', 
 23      '.602': 'application/x-t602', 
 24      '.669': 'audio/x-mod', 
 25      '.7z': 'application/x-7z-compressed', 
 26      '.a': 'application/x-archive', 
 27      '.aac': 'audio/mp4', 
 28      '.abw': 'application/x-abiword', 
 29      '.abw.crashed': 'application/x-abiword', 
 30      '.abw.gz': 'application/x-abiword', 
 31      '.ac3': 'audio/ac3', 
 32      '.ace': 'application/x-ace', 
 33      '.adb': 'text/x-adasrc', 
 34      '.ads': 'text/x-adasrc', 
 35      '.afm': 'application/x-font-afm', 
 36      '.ag': 'image/x-applix-graphics', 
 37      '.ai': 'application/illustrator', 
 38      '.aif': 'audio/x-aiff', 
 39      '.aifc': 'audio/x-aiff', 
 40      '.aiff': 'audio/x-aiff', 
 41      '.al': 'application/x-perl', 
 42      '.alz': 'application/x-alz', 
 43      '.amr': 'audio/amr', 
 44      '.ani': 'application/x-navi-animation', 
 45      '.anim[1-9j]': 'video/x-anim', 
 46      '.anx': 'application/annodex', 
 47      '.ape': 'audio/x-ape', 
 48      '.arj': 'application/x-arj', 
 49      '.arw': 'image/x-sony-arw', 
 50      '.as': 'application/x-applix-spreadsheet', 
 51      '.asc': 'text/plain', 
 52      '.asf': 'video/x-ms-asf', 
 53      '.asp': 'application/x-asp', 
 54      '.ass': 'text/x-ssa', 
 55      '.asx': 'audio/x-ms-asx', 
 56      '.atom': 'application/atom+xml', 
 57      '.au': 'audio/basic', 
 58      '.avi': 'video/x-msvideo', 
 59      '.aw': 'application/x-applix-word', 
 60      '.awb': 'audio/amr-wb', 
 61      '.awk': 'application/x-awk', 
 62      '.axa': 'audio/annodex', 
 63      '.axv': 'video/annodex', 
 64      '.bak': 'application/x-trash', 
 65      '.bcpio': 'application/x-bcpio', 
 66      '.bdf': 'application/x-font-bdf', 
 67      '.bib': 'text/x-bibtex', 
 68      '.bin': 'application/octet-stream', 
 69      '.blend': 'application/x-blender', 
 70      '.blender': 'application/x-blender', 
 71      '.bmp': 'image/bmp', 
 72      '.bz': 'application/x-bzip', 
 73      '.bz2': 'application/x-bzip', 
 74      '.c': 'text/x-csrc', 
 75      '.c++': 'text/x-c++src', 
 76      '.cab': 'application/vnd.ms-cab-compressed', 
 77      '.cb7': 'application/x-cb7', 
 78      '.cbr': 'application/x-cbr', 
 79      '.cbt': 'application/x-cbt', 
 80      '.cbz': 'application/x-cbz', 
 81      '.cc': 'text/x-c++src', 
 82      '.cdf': 'application/x-netcdf', 
 83      '.cdr': 'application/vnd.corel-draw', 
 84      '.cer': 'application/x-x509-ca-cert', 
 85      '.cert': 'application/x-x509-ca-cert', 
 86      '.cgm': 'image/cgm', 
 87      '.chm': 'application/x-chm', 
 88      '.chrt': 'application/x-kchart', 
 89      '.class': 'application/x-java', 
 90      '.cls': 'text/x-tex', 
 91      '.cmake': 'text/x-cmake', 
 92      '.cpio': 'application/x-cpio', 
 93      '.cpio.gz': 'application/x-cpio-compressed', 
 94      '.cpp': 'text/x-c++src', 
 95      '.cr2': 'image/x-canon-cr2', 
 96      '.crt': 'application/x-x509-ca-cert', 
 97      '.crw': 'image/x-canon-crw', 
 98      '.cs': 'text/x-csharp', 
 99      '.csh': 'application/x-csh', 
100      '.css': 'text/css', 
101      '.cssl': 'text/css', 
102      '.csv': 'text/csv', 
103      '.cue': 'application/x-cue', 
104      '.cur': 'image/x-win-bitmap', 
105      '.cxx': 'text/x-c++src', 
106      '.d': 'text/x-dsrc', 
107      '.dar': 'application/x-dar', 
108      '.dbf': 'application/x-dbf', 
109      '.dc': 'application/x-dc-rom', 
110      '.dcl': 'text/x-dcl', 
111      '.dcm': 'application/dicom', 
112      '.dcr': 'image/x-kodak-dcr', 
113      '.dds': 'image/x-dds', 
114      '.deb': 'application/x-deb', 
115      '.der': 'application/x-x509-ca-cert', 
116      '.desktop': 'application/x-desktop', 
117      '.dia': 'application/x-dia-diagram', 
118      '.diff': 'text/x-patch', 
119      '.divx': 'video/x-msvideo', 
120      '.djv': 'image/vnd.djvu', 
121      '.djvu': 'image/vnd.djvu', 
122      '.dng': 'image/x-adobe-dng', 
123      '.doc': 'application/msword', 
124      '.docbook': 'application/docbook+xml', 
125      '.docm': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 
126      '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 
127      '.dot': 'text/vnd.graphviz', 
128      '.dsl': 'text/x-dsl', 
129      '.dtd': 'application/xml-dtd', 
130      '.dtx': 'text/x-tex', 
131      '.dv': 'video/dv', 
132      '.dvi': 'application/x-dvi', 
133      '.dvi.bz2': 'application/x-bzdvi', 
134      '.dvi.gz': 'application/x-gzdvi', 
135      '.dwg': 'image/vnd.dwg', 
136      '.dxf': 'image/vnd.dxf', 
137      '.e': 'text/x-eiffel', 
138      '.egon': 'application/x-egon', 
139      '.eif': 'text/x-eiffel', 
140      '.el': 'text/x-emacs-lisp', 
141      '.emf': 'image/x-emf', 
142      '.emp': 'application/vnd.emusic-emusic_package', 
143      '.ent': 'application/xml-external-parsed-entity', 
144      '.eps': 'image/x-eps', 
145      '.eps.bz2': 'image/x-bzeps', 
146      '.eps.gz': 'image/x-gzeps', 
147      '.epsf': 'image/x-eps', 
148      '.epsf.bz2': 'image/x-bzeps', 
149      '.epsf.gz': 'image/x-gzeps', 
150      '.epsi': 'image/x-eps', 
151      '.epsi.bz2': 'image/x-bzeps', 
152      '.epsi.gz': 'image/x-gzeps', 
153      '.epub': 'application/epub+zip', 
154      '.erl': 'text/x-erlang', 
155      '.es': 'application/ecmascript', 
156      '.etheme': 'application/x-e-theme', 
157      '.etx': 'text/x-setext', 
158      '.exe': 'application/x-ms-dos-executable', 
159      '.exr': 'image/x-exr', 
160      '.ez': 'application/andrew-inset', 
161      '.f': 'text/x-fortran', 
162      '.f90': 'text/x-fortran', 
163      '.f95': 'text/x-fortran', 
164      '.fb2': 'application/x-fictionbook+xml', 
165      '.fig': 'image/x-xfig', 
166      '.fits': 'image/fits', 
167      '.fl': 'application/x-fluid', 
168      '.flac': 'audio/x-flac', 
169      '.flc': 'video/x-flic', 
170      '.fli': 'video/x-flic', 
171      '.flv': 'video/x-flv', 
172      '.flw': 'application/x-kivio', 
173      '.fo': 'text/x-xslfo', 
174      '.for': 'text/x-fortran', 
175      '.g3': 'image/fax-g3', 
176      '.gb': 'application/x-gameboy-rom', 
177      '.gba': 'application/x-gba-rom', 
178      '.gcrd': 'text/directory', 
179      '.ged': 'application/x-gedcom', 
180      '.gedcom': 'application/x-gedcom', 
181      '.gen': 'application/x-genesis-rom', 
182      '.gf': 'application/x-tex-gf', 
183      '.gg': 'application/x-sms-rom', 
184      '.gif': 'image/gif', 
185      '.glade': 'application/x-glade', 
186      '.gmo': 'application/x-gettext-translation', 
187      '.gnc': 'application/x-gnucash', 
188      '.gnd': 'application/gnunet-directory', 
189      '.gnucash': 'application/x-gnucash', 
190      '.gnumeric': 'application/x-gnumeric', 
191      '.gnuplot': 'application/x-gnuplot', 
192      '.gp': 'application/x-gnuplot', 
193      '.gpg': 'application/pgp-encrypted', 
194      '.gplt': 'application/x-gnuplot', 
195      '.gra': 'application/x-graphite', 
196      '.gsf': 'application/x-font-type1', 
197      '.gsm': 'audio/x-gsm', 
198      '.gtar': 'application/x-tar', 
199      '.gv': 'text/vnd.graphviz', 
200      '.gvp': 'text/x-google-video-pointer', 
201      '.gz': 'application/x-gzip', 
202      '.h': 'text/x-chdr', 
203      '.h++': 'text/x-c++hdr', 
204      '.hdf': 'application/x-hdf', 
205      '.hh': 'text/x-c++hdr', 
206      '.hp': 'text/x-c++hdr', 
207      '.hpgl': 'application/vnd.hp-hpgl', 
208      '.hpp': 'text/x-c++hdr', 
209      '.hs': 'text/x-haskell', 
210      '.htm': 'text/html', 
211      '.html': 'text/html', 
212      '.hwp': 'application/x-hwp', 
213      '.hwt': 'application/x-hwt', 
214      '.hxx': 'text/x-c++hdr', 
215      '.ica': 'application/x-ica', 
216      '.icb': 'image/x-tga', 
217      '.icns': 'image/x-icns', 
218      '.ico': 'image/vnd.microsoft.icon', 
219      '.ics': 'text/calendar', 
220      '.idl': 'text/x-idl', 
221      '.ief': 'image/ief', 
222      '.iff': 'image/x-iff', 
223      '.ilbm': 'image/x-ilbm', 
224      '.ime': 'text/x-imelody', 
225      '.imy': 'text/x-imelody', 
226      '.ins': 'text/x-tex', 
227      '.iptables': 'text/x-iptables', 
228      '.iso': 'application/x-cd-image', 
229      '.iso9660': 'application/x-cd-image', 
230      '.it': 'audio/x-it', 
231      '.j2k': 'image/jp2', 
232      '.jad': 'text/vnd.sun.j2me.app-descriptor', 
233      '.jar': 'application/x-java-archive', 
234      '.java': 'text/x-java', 
235      '.jng': 'image/x-jng', 
236      '.jnlp': 'application/x-java-jnlp-file', 
237      '.jp2': 'image/jp2', 
238      '.jpc': 'image/jp2', 
239      '.jpe': 'image/jpeg', 
240      '.jpeg': 'image/jpeg', 
241      '.jpf': 'image/jp2', 
242      '.jpg': 'image/jpeg', 
243      '.jpr': 'application/x-jbuilder-project', 
244      '.jpx': 'image/jp2', 
245      '.js': 'application/javascript', 
246      '.json': 'application/json', 
247      '.jsonp': 'application/jsonp', 
248      '.k25': 'image/x-kodak-k25', 
249      '.kar': 'audio/midi', 
250      '.karbon': 'application/x-karbon', 
251      '.kdc': 'image/x-kodak-kdc', 
252      '.kdelnk': 'application/x-desktop', 
253      '.kexi': 'application/x-kexiproject-sqlite3', 
254      '.kexic': 'application/x-kexi-connectiondata', 
255      '.kexis': 'application/x-kexiproject-shortcut', 
256      '.kfo': 'application/x-kformula', 
257      '.kil': 'application/x-killustrator', 
258      '.kino': 'application/smil', 
259      '.kml': 'application/vnd.google-earth.kml+xml', 
260      '.kmz': 'application/vnd.google-earth.kmz', 
261      '.kon': 'application/x-kontour', 
262      '.kpm': 'application/x-kpovmodeler', 
263      '.kpr': 'application/x-kpresenter', 
264      '.kpt': 'application/x-kpresenter', 
265      '.kra': 'application/x-krita', 
266      '.ksp': 'application/x-kspread', 
267      '.kud': 'application/x-kugar', 
268      '.kwd': 'application/x-kword', 
269      '.kwt': 'application/x-kword', 
270      '.la': 'application/x-shared-library-la', 
271      '.latex': 'text/x-tex', 
272      '.ldif': 'text/x-ldif', 
273      '.lha': 'application/x-lha', 
274      '.lhs': 'text/x-literate-haskell', 
275      '.lhz': 'application/x-lhz', 
276      '.log': 'text/x-log', 
277      '.ltx': 'text/x-tex', 
278      '.lua': 'text/x-lua', 
279      '.lwo': 'image/x-lwo', 
280      '.lwob': 'image/x-lwo', 
281      '.lws': 'image/x-lws', 
282      '.ly': 'text/x-lilypond', 
283      '.lyx': 'application/x-lyx', 
284      '.lz': 'application/x-lzip', 
285      '.lzh': 'application/x-lha', 
286      '.lzma': 'application/x-lzma', 
287      '.lzo': 'application/x-lzop', 
288      '.m': 'text/x-matlab', 
289      '.m15': 'audio/x-mod', 
290      '.m2t': 'video/mpeg', 
291      '.m3u': 'audio/x-mpegurl', 
292      '.m3u8': 'audio/x-mpegurl', 
293      '.m4': 'application/x-m4', 
294      '.m4a': 'audio/mp4', 
295      '.m4b': 'audio/x-m4b', 
296      '.m4v': 'video/mp4', 
297      '.mab': 'application/x-markaby', 
298      '.man': 'application/x-troff-man', 
299      '.mbox': 'application/mbox', 
300      '.md': 'application/x-genesis-rom', 
301      '.mdb': 'application/vnd.ms-access', 
302      '.mdi': 'image/vnd.ms-modi', 
303      '.me': 'text/x-troff-me', 
304      '.med': 'audio/x-mod', 
305      '.metalink': 'application/metalink+xml', 
306      '.mgp': 'application/x-magicpoint', 
307      '.mid': 'audio/midi', 
308      '.midi': 'audio/midi', 
309      '.mif': 'application/x-mif', 
310      '.minipsf': 'audio/x-minipsf', 
311      '.mka': 'audio/x-matroska', 
312      '.mkv': 'video/x-matroska', 
313      '.ml': 'text/x-ocaml', 
314      '.mli': 'text/x-ocaml', 
315      '.mm': 'text/x-troff-mm', 
316      '.mmf': 'application/x-smaf', 
317      '.mml': 'text/mathml', 
318      '.mng': 'video/x-mng', 
319      '.mo': 'application/x-gettext-translation', 
320      '.mo3': 'audio/x-mo3', 
321      '.moc': 'text/x-moc', 
322      '.mod': 'audio/x-mod', 
323      '.mof': 'text/x-mof', 
324      '.moov': 'video/quicktime', 
325      '.mov': 'video/quicktime', 
326      '.movie': 'video/x-sgi-movie', 
327      '.mp+': 'audio/x-musepack', 
328      '.mp2': 'video/mpeg', 
329      '.mp3': 'audio/mpeg', 
330      '.mp4': 'video/mp4', 
331      '.mpc': 'audio/x-musepack', 
332      '.mpe': 'video/mpeg', 
333      '.mpeg': 'video/mpeg', 
334      '.mpg': 'video/mpeg', 
335      '.mpga': 'audio/mpeg', 
336      '.mpp': 'audio/x-musepack', 
337      '.mrl': 'text/x-mrml', 
338      '.mrml': 'text/x-mrml', 
339      '.mrw': 'image/x-minolta-mrw', 
340      '.ms': 'text/x-troff-ms', 
341      '.msi': 'application/x-msi', 
342      '.msod': 'image/x-msod', 
343      '.msx': 'application/x-msx-rom', 
344      '.mtm': 'audio/x-mod', 
345      '.mup': 'text/x-mup', 
346      '.mxf': 'application/mxf', 
347      '.n64': 'application/x-n64-rom', 
348      '.nb': 'application/mathematica', 
349      '.nc': 'application/x-netcdf', 
350      '.nds': 'application/x-nintendo-ds-rom', 
351      '.nef': 'image/x-nikon-nef', 
352      '.nes': 'application/x-nes-rom', 
353      '.nfo': 'text/x-nfo', 
354      '.not': 'text/x-mup', 
355      '.nsc': 'application/x-netshow-channel', 
356      '.nsv': 'video/x-nsv', 
357      '.o': 'application/x-object', 
358      '.obj': 'application/x-tgif', 
359      '.ocl': 'text/x-ocl', 
360      '.oda': 'application/oda', 
361      '.odb': 'application/vnd.oasis.opendocument.database', 
362      '.odc': 'application/vnd.oasis.opendocument.chart', 
363      '.odf': 'application/vnd.oasis.opendocument.formula', 
364      '.odg': 'application/vnd.oasis.opendocument.graphics', 
365      '.odi': 'application/vnd.oasis.opendocument.image', 
366      '.odm': 'application/vnd.oasis.opendocument.text-master', 
367      '.odp': 'application/vnd.oasis.opendocument.presentation', 
368      '.ods': 'application/vnd.oasis.opendocument.spreadsheet', 
369      '.odt': 'application/vnd.oasis.opendocument.text', 
370      '.oga': 'audio/ogg', 
371      '.ogg': 'video/x-theora+ogg', 
372      '.ogm': 'video/x-ogm+ogg', 
373      '.ogv': 'video/ogg', 
374      '.ogx': 'application/ogg', 
375      '.old': 'application/x-trash', 
376      '.oleo': 'application/x-oleo', 
377      '.opml': 'text/x-opml+xml', 
378      '.ora': 'image/openraster', 
379      '.orf': 'image/x-olympus-orf', 
380      '.otc': 'application/vnd.oasis.opendocument.chart-template', 
381      '.otf': 'application/x-font-otf', 
382      '.otg': 'application/vnd.oasis.opendocument.graphics-template', 
383      '.oth': 'application/vnd.oasis.opendocument.text-web', 
384      '.otp': 'application/vnd.oasis.opendocument.presentation-template', 
385      '.ots': 'application/vnd.oasis.opendocument.spreadsheet-template', 
386      '.ott': 'application/vnd.oasis.opendocument.text-template', 
387      '.owl': 'application/rdf+xml', 
388      '.oxt': 'application/vnd.openofficeorg.extension', 
389      '.p': 'text/x-pascal', 
390      '.p10': 'application/pkcs10', 
391      '.p12': 'application/x-pkcs12', 
392      '.p7b': 'application/x-pkcs7-certificates', 
393      '.p7s': 'application/pkcs7-signature', 
394      '.pack': 'application/x-java-pack200', 
395      '.pak': 'application/x-pak', 
396      '.par2': 'application/x-par2', 
397      '.pas': 'text/x-pascal', 
398      '.patch': 'text/x-patch', 
399      '.pbm': 'image/x-portable-bitmap', 
400      '.pcd': 'image/x-photo-cd', 
401      '.pcf': 'application/x-cisco-vpn-settings', 
402      '.pcf.gz': 'application/x-font-pcf', 
403      '.pcf.z': 'application/x-font-pcf', 
404      '.pcl': 'application/vnd.hp-pcl', 
405      '.pcx': 'image/x-pcx', 
406      '.pdb': 'chemical/x-pdb', 
407      '.pdc': 'application/x-aportisdoc', 
408      '.pdf': 'application/pdf', 
409      '.pdf.bz2': 'application/x-bzpdf', 
410      '.pdf.gz': 'application/x-gzpdf', 
411      '.pef': 'image/x-pentax-pef', 
412      '.pem': 'application/x-x509-ca-cert', 
413      '.perl': 'application/x-perl', 
414      '.pfa': 'application/x-font-type1', 
415      '.pfb': 'application/x-font-type1', 
416      '.pfx': 'application/x-pkcs12', 
417      '.pgm': 'image/x-portable-graymap', 
418      '.pgn': 'application/x-chess-pgn', 
419      '.pgp': 'application/pgp-encrypted', 
420      '.php': 'application/x-php', 
421      '.php3': 'application/x-php', 
422      '.php4': 'application/x-php', 
423      '.pict': 'image/x-pict', 
424      '.pict1': 'image/x-pict', 
425      '.pict2': 'image/x-pict', 
426      '.pickle': 'application/python-pickle', 
427      '.pk': 'application/x-tex-pk', 
428      '.pkipath': 'application/pkix-pkipath', 
429      '.pkr': 'application/pgp-keys', 
430      '.pl': 'application/x-perl', 
431      '.pla': 'audio/x-iriver-pla', 
432      '.pln': 'application/x-planperfect', 
433      '.pls': 'audio/x-scpls', 
434      '.pm': 'application/x-perl', 
435      '.png': 'image/png', 
436      '.pnm': 'image/x-portable-anymap', 
437      '.pntg': 'image/x-macpaint', 
438      '.po': 'text/x-gettext-translation', 
439      '.por': 'application/x-spss-por', 
440      '.pot': 'text/x-gettext-translation-template', 
441      '.ppm': 'image/x-portable-pixmap', 
442      '.pps': 'application/vnd.ms-powerpoint', 
443      '.ppt': 'application/vnd.ms-powerpoint', 
444      '.pptm': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 
445      '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 
446      '.ppz': 'application/vnd.ms-powerpoint', 
447      '.prc': 'application/x-palm-database', 
448      '.ps': 'application/postscript', 
449      '.ps.bz2': 'application/x-bzpostscript', 
450      '.ps.gz': 'application/x-gzpostscript', 
451      '.psd': 'image/vnd.adobe.photoshop', 
452      '.psf': 'audio/x-psf', 
453      '.psf.gz': 'application/x-gz-font-linux-psf', 
454      '.psflib': 'audio/x-psflib', 
455      '.psid': 'audio/prs.sid', 
456      '.psw': 'application/x-pocket-word', 
457      '.pw': 'application/x-pw', 
458      '.py': 'text/x-python', 
459      '.pyc': 'application/x-python-bytecode', 
460      '.pyo': 'application/x-python-bytecode', 
461      '.qif': 'image/x-quicktime', 
462      '.qt': 'video/quicktime', 
463      '.qtif': 'image/x-quicktime', 
464      '.qtl': 'application/x-quicktime-media-link', 
465      '.qtvr': 'video/quicktime', 
466      '.ra': 'audio/vnd.rn-realaudio', 
467      '.raf': 'image/x-fuji-raf', 
468      '.ram': 'application/ram', 
469      '.rar': 'application/x-rar', 
470      '.ras': 'image/x-cmu-raster', 
471      '.raw': 'image/x-panasonic-raw', 
472      '.rax': 'audio/vnd.rn-realaudio', 
473      '.rb': 'application/x-ruby', 
474      '.rdf': 'application/rdf+xml', 
475      '.rdfs': 'application/rdf+xml', 
476      '.reg': 'text/x-ms-regedit', 
477      '.rej': 'application/x-reject', 
478      '.rgb': 'image/x-rgb', 
479      '.rle': 'image/rle', 
480      '.rm': 'application/vnd.rn-realmedia', 
481      '.rmj': 'application/vnd.rn-realmedia', 
482      '.rmm': 'application/vnd.rn-realmedia', 
483      '.rms': 'application/vnd.rn-realmedia', 
484      '.rmvb': 'application/vnd.rn-realmedia', 
485      '.rmx': 'application/vnd.rn-realmedia', 
486      '.roff': 'text/troff', 
487      '.rp': 'image/vnd.rn-realpix', 
488      '.rpm': 'application/x-rpm', 
489      '.rss': 'application/rss+xml', 
490      '.rt': 'text/vnd.rn-realtext', 
491      '.rtf': 'application/rtf', 
492      '.rtx': 'text/richtext', 
493      '.rv': 'video/vnd.rn-realvideo', 
494      '.rvx': 'video/vnd.rn-realvideo', 
495      '.s3m': 'audio/x-s3m', 
496      '.sam': 'application/x-amipro', 
497      '.sami': 'application/x-sami', 
498      '.sav': 'application/x-spss-sav', 
499      '.scm': 'text/x-scheme', 
500      '.sda': 'application/vnd.stardivision.draw', 
501      '.sdc': 'application/vnd.stardivision.calc', 
502      '.sdd': 'application/vnd.stardivision.impress', 
503      '.sdp': 'application/sdp', 
504      '.sds': 'application/vnd.stardivision.chart', 
505      '.sdw': 'application/vnd.stardivision.writer', 
506      '.sgf': 'application/x-go-sgf', 
507      '.sgi': 'image/x-sgi', 
508      '.sgl': 'application/vnd.stardivision.writer', 
509      '.sgm': 'text/sgml', 
510      '.sgml': 'text/sgml', 
511      '.sh': 'application/x-shellscript', 
512      '.shar': 'application/x-shar', 
513      '.shn': 'application/x-shorten', 
514      '.siag': 'application/x-siag', 
515      '.sid': 'audio/prs.sid', 
516      '.sik': 'application/x-trash', 
517      '.sis': 'application/vnd.symbian.install', 
518      '.sisx': 'x-epoc/x-sisx-app', 
519      '.sit': 'application/x-stuffit', 
520      '.siv': 'application/sieve', 
521      '.sk': 'image/x-skencil', 
522      '.sk1': 'image/x-skencil', 
523      '.skr': 'application/pgp-keys', 
524      '.slk': 'text/spreadsheet', 
525      '.smaf': 'application/x-smaf', 
526      '.smc': 'application/x-snes-rom', 
527      '.smd': 'application/vnd.stardivision.mail', 
528      '.smf': 'application/vnd.stardivision.math', 
529      '.smi': 'application/x-sami', 
530      '.smil': 'application/smil', 
531      '.sml': 'application/smil', 
532      '.sms': 'application/x-sms-rom', 
533      '.snd': 'audio/basic', 
534      '.so': 'application/x-sharedlib', 
535      '.spc': 'application/x-pkcs7-certificates', 
536      '.spd': 'application/x-font-speedo', 
537      '.spec': 'text/x-rpm-spec', 
538      '.spl': 'application/x-shockwave-flash', 
539      '.spx': 'audio/x-speex', 
540      '.sql': 'text/x-sql', 
541      '.sr2': 'image/x-sony-sr2', 
542      '.src': 'application/x-wais-source', 
543      '.srf': 'image/x-sony-srf', 
544      '.srt': 'application/x-subrip', 
545      '.ssa': 'text/x-ssa', 
546      '.stc': 'application/vnd.sun.xml.calc.template', 
547      '.std': 'application/vnd.sun.xml.draw.template', 
548      '.sti': 'application/vnd.sun.xml.impress.template', 
549      '.stm': 'audio/x-stm', 
550      '.stw': 'application/vnd.sun.xml.writer.template', 
551      '.sty': 'text/x-tex', 
552      '.sub': 'text/x-subviewer', 
553      '.sun': 'image/x-sun-raster', 
554      '.sv4cpio': 'application/x-sv4cpio', 
555      '.sv4crc': 'application/x-sv4crc', 
556      '.svg': 'image/svg+xml', 
557      '.svgz': 'image/svg+xml-compressed', 
558      '.swf': 'application/x-shockwave-flash', 
559      '.sxc': 'application/vnd.sun.xml.calc', 
560      '.sxd': 'application/vnd.sun.xml.draw', 
561      '.sxg': 'application/vnd.sun.xml.writer.global', 
562      '.sxi': 'application/vnd.sun.xml.impress', 
563      '.sxm': 'application/vnd.sun.xml.math', 
564      '.sxw': 'application/vnd.sun.xml.writer', 
565      '.sylk': 'text/spreadsheet', 
566      '.t': 'text/troff', 
567      '.t2t': 'text/x-txt2tags', 
568      '.tar': 'application/x-tar', 
569      '.tar.bz': 'application/x-bzip-compressed-tar', 
570      '.tar.bz2': 'application/x-bzip-compressed-tar', 
571      '.tar.gz': 'application/x-compressed-tar', 
572      '.tar.lzma': 'application/x-lzma-compressed-tar', 
573      '.tar.lzo': 'application/x-tzo', 
574      '.tar.xz': 'application/x-xz-compressed-tar', 
575      '.tar.z': 'application/x-tarz', 
576      '.tbz': 'application/x-bzip-compressed-tar', 
577      '.tbz2': 'application/x-bzip-compressed-tar', 
578      '.tcl': 'text/x-tcl', 
579      '.tex': 'text/x-tex', 
580      '.texi': 'text/x-texinfo', 
581      '.texinfo': 'text/x-texinfo', 
582      '.tga': 'image/x-tga', 
583      '.tgz': 'application/x-compressed-tar', 
584      '.theme': 'application/x-theme', 
585      '.themepack': 'application/x-windows-themepack', 
586      '.tif': 'image/tiff', 
587      '.tiff': 'image/tiff', 
588      '.tk': 'text/x-tcl', 
589      '.tlz': 'application/x-lzma-compressed-tar', 
590      '.tnef': 'application/vnd.ms-tnef', 
591      '.tnf': 'application/vnd.ms-tnef', 
592      '.toc': 'application/x-cdrdao-toc', 
593      '.torrent': 'application/x-bittorrent', 
594      '.tpic': 'image/x-tga', 
595      '.tr': 'text/troff', 
596      '.ts': 'application/x-linguist', 
597      '.tsv': 'text/tab-separated-values', 
598      '.tta': 'audio/x-tta', 
599      '.ttc': 'application/x-font-ttf', 
600      '.ttf': 'application/x-font-ttf', 
601      '.ttx': 'application/x-font-ttx', 
602      '.txt': 'text/plain', 
603      '.txz': 'application/x-xz-compressed-tar', 
604      '.tzo': 'application/x-tzo', 
605      '.ufraw': 'application/x-ufraw', 
606      '.ui': 'application/x-designer', 
607      '.uil': 'text/x-uil', 
608      '.ult': 'audio/x-mod', 
609      '.uni': 'audio/x-mod', 
610      '.uri': 'text/x-uri', 
611      '.url': 'text/x-uri', 
612      '.ustar': 'application/x-ustar', 
613      '.vala': 'text/x-vala', 
614      '.vapi': 'text/x-vala', 
615      '.vcf': 'text/directory', 
616      '.vcs': 'text/calendar', 
617      '.vct': 'text/directory', 
618      '.vda': 'image/x-tga', 
619      '.vhd': 'text/x-vhdl', 
620      '.vhdl': 'text/x-vhdl', 
621      '.viv': 'video/vivo', 
622      '.vivo': 'video/vivo', 
623      '.vlc': 'audio/x-mpegurl', 
624      '.vob': 'video/mpeg', 
625      '.voc': 'audio/x-voc', 
626      '.vor': 'application/vnd.stardivision.writer', 
627      '.vst': 'image/x-tga', 
628      '.wav': 'audio/x-wav', 
629      '.wax': 'audio/x-ms-asx', 
630      '.wb1': 'application/x-quattropro', 
631      '.wb2': 'application/x-quattropro', 
632      '.wb3': 'application/x-quattropro', 
633      '.wbmp': 'image/vnd.wap.wbmp', 
634      '.wcm': 'application/vnd.ms-works', 
635      '.wdb': 'application/vnd.ms-works', 
636      '.webm': 'video/webm', 
637      '.wk1': 'application/vnd.lotus-1-2-3', 
638      '.wk3': 'application/vnd.lotus-1-2-3', 
639      '.wk4': 'application/vnd.lotus-1-2-3', 
640      '.wks': 'application/vnd.ms-works', 
641      '.wma': 'audio/x-ms-wma', 
642      '.wmf': 'image/x-wmf', 
643      '.wml': 'text/vnd.wap.wml', 
644      '.wmls': 'text/vnd.wap.wmlscript', 
645      '.wmv': 'video/x-ms-wmv', 
646      '.wmx': 'audio/x-ms-asx', 
647      '.wp': 'application/vnd.wordperfect', 
648      '.wp4': 'application/vnd.wordperfect', 
649      '.wp5': 'application/vnd.wordperfect', 
650      '.wp6': 'application/vnd.wordperfect', 
651      '.wpd': 'application/vnd.wordperfect', 
652      '.wpg': 'application/x-wpg', 
653      '.wpl': 'application/vnd.ms-wpl', 
654      '.wpp': 'application/vnd.wordperfect', 
655      '.wps': 'application/vnd.ms-works', 
656      '.wri': 'application/x-mswrite', 
657      '.wrl': 'model/vrml', 
658      '.wv': 'audio/x-wavpack', 
659      '.wvc': 'audio/x-wavpack-correction', 
660      '.wvp': 'audio/x-wavpack', 
661      '.wvx': 'audio/x-ms-asx', 
662      '.x3f': 'image/x-sigma-x3f', 
663      '.xac': 'application/x-gnucash', 
664      '.xbel': 'application/x-xbel', 
665      '.xbl': 'application/xml', 
666      '.xbm': 'image/x-xbitmap', 
667      '.xcf': 'image/x-xcf', 
668      '.xcf.bz2': 'image/x-compressed-xcf', 
669      '.xcf.gz': 'image/x-compressed-xcf', 
670      '.xhtml': 'application/xhtml+xml', 
671      '.xi': 'audio/x-xi', 
672      '.xla': 'application/vnd.ms-excel', 
673      '.xlc': 'application/vnd.ms-excel', 
674      '.xld': 'application/vnd.ms-excel', 
675      '.xlf': 'application/x-xliff', 
676      '.xliff': 'application/x-xliff', 
677      '.xll': 'application/vnd.ms-excel', 
678      '.xlm': 'application/vnd.ms-excel', 
679      '.xls': 'application/vnd.ms-excel', 
680      '.xlsm': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 
681      '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 
682      '.xlt': 'application/vnd.ms-excel', 
683      '.xlw': 'application/vnd.ms-excel', 
684      '.xm': 'audio/x-xm', 
685      '.xmf': 'audio/x-xmf', 
686      '.xmi': 'text/x-xmi', 
687      '.xml': 'application/xml', 
688      '.xpm': 'image/x-xpixmap', 
689      '.xps': 'application/vnd.ms-xpsdocument', 
690      '.xsl': 'application/xml', 
691      '.xslfo': 'text/x-xslfo', 
692      '.xslt': 'application/xml', 
693      '.xspf': 'application/xspf+xml', 
694      '.xul': 'application/vnd.mozilla.xul+xml', 
695      '.xwd': 'image/x-xwindowdump', 
696      '.xyz': 'chemical/x-pdb', 
697      '.xz': 'application/x-xz', 
698      '.w2p': 'application/w2p', 
699      '.z': 'application/x-compress', 
700      '.zabw': 'application/x-abiword', 
701      '.zip': 'application/zip', 
702      '.zoo': 'application/x-zoo', 
703      } 

相关文章推荐

各种类型文件的Content Type,基本全部都有

CONTENT_TYPE = { 16 '.load': 'text/html', 17 '.123': 'application/vnd.lotus-1-2-3', ...

常见文件的http中content-type头的值(MIME类型)

常见文件的http中content-type头的值(MIME类型) An official listing of defined MIME types: .ai - application/p...

springmvc中@requestbody注解接收前端参数使用content-type类型

springmvc中@requestbody注解接收前端参数使用content-type类型 postman设置content-type格式...
  • ljxbbss
  • ljxbbss
  • 2017年07月05日 15:42
  • 1929

http请求的媒体类型Content-Type

类型格式:type/subtype(;parameter)? type 主类型,任意的字符串,如text,如果是*号代表所有; subtype 子类型,任意的字符串,如html,如果是*号代表所有...

php知识点1-HTTP头部-Content-Type类型

1.概述 Content-Type用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件。 2.Content-Type $mimetypes = arra...

php header Content-Type类型小结

sharepoint 2010 如何创建文档库内容类型content type

这次主要是记录下,如何来创建文档内容类型,例如新建文档的时候,可以选择不同模板,有word,excel文档格式等等,在做文档管理里面有一个功能,就是在线新建文档,由于文档类型和模板非常多,如何很方便的...

MIME类型收录主要包含Content-Type的可设定值

MIME信息头有: MIME-Version: 这个头提供了所用MIME的版本号。这个值习惯上为1.0。 Content-Type: 它定义了数据的类型,以便数据能被适当的处理...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:各种类型文件的Content Type
举报原因:
原因补充:

(最多只允许输入30个字)