ContentTypeDict.cs 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TEAMModelOS.SDK.Context.Constant
  5. {
  6. public static class ContentTypeDict
  7. {
  8. public static readonly Dictionary<string, string> dict = new Dictionary<string, string> {
  9. {".3g2", "video/3gpp"},
  10. {".3ga", "video/3gpp"},
  11. {".3gp", "video/3gpp"},
  12. {".aac", "audio/mp4"},
  13. {".ac3", "audio/ac3"},
  14. {".adb", "text/x-adasrc"},
  15. {".ads", "text/x-adasrc"},
  16. {".ag", "image/x-applix-graphics"},
  17. {".amr", "audio/amr"},
  18. {".ape", "audio/x-ape"},
  19. {".arw", "image/x-sony-arw"},
  20. {".asc", "text/plain"},
  21. {".asf", "video/x-ms-asf"},
  22. {".ass", "text/x-ssa"},
  23. {".avi", "video/x-msvideo"},
  24. {".bib", "text/x-bibtex"},
  25. {".bmp", "image/bmp"},
  26. {".c", "text/x-csrc"},
  27. {".c++", "text/x-c++src"},
  28. {".cc", "text/x-c++src"},
  29. {".cgm", "image/cgm"},
  30. {".cls", "text/x-tex"},
  31. {".cmake", "text/x-cmake"},
  32. {".cpp", "text/x-c++src"},
  33. {".cr2", "image/x-canon-cr2"},
  34. {".crw", "image/x-canon-crw"},
  35. {".cs", "text/x-csharp"},
  36. {".css", "text/css"},
  37. {".cssl", "text/css"},
  38. {".csv", "text/csv"},
  39. {".cur", "image/x-win-bitmap"},
  40. {".cxx", "text/x-c++src"},
  41. {".d", "text/x-dsrc"},
  42. {".dcl", "text/x-dcl"},
  43. {".dcr", "image/x-kodak-dcr"},
  44. {".dds", "image/x-dds"},
  45. {".diff", "text/x-patch"},
  46. {".djv", "image/vnd.djvu"},
  47. {".djvu", "image/vnd.djvu"},
  48. {".dng", "image/x-adobe-dng"},
  49. {".dot", "text/vnd.graphviz"},
  50. {".dsl", "text/x-dsl"},
  51. {".dtx", "text/x-tex"},
  52. {".dwg", "image/vnd.dwg"},
  53. {".dxf", "image/vnd.dxf"},
  54. {".e", "text/x-eiffel"},
  55. {".eif", "text/x-eiffel"},
  56. {".el", "text/x-emacs-lisp"},
  57. {".emf", "image/x-emf"},
  58. {".eps", "image/x-eps"},
  59. {".eps.bz2", "image/x-bzeps"},
  60. {".eps.gz", "image/x-gzeps"},
  61. {".epsf", "image/x-eps"},
  62. {".epsf.bz2", "image/x-bzeps"},
  63. {".epsf.gz", "image/x-gzeps"},
  64. {".epsi", "image/x-eps"},
  65. {".epsi.bz2", "image/x-bzeps"},
  66. {".epsi.gz", "image/x-gzeps"},
  67. {".erl", "text/x-erlang"},
  68. {".etx", "text/x-setext"},
  69. {".exr", "image/x-exr"},
  70. {".f", "text/x-fortran"},
  71. {".f90", "text/x-fortran"},
  72. {".f95", "text/x-fortran"},
  73. {".fig", "image/x-xfig"},
  74. {".fits", "image/fits"},
  75. {".flv", "video/x-flv"},
  76. {".fo", "text/x-xslfo"},
  77. {".for", "text/x-fortran"},
  78. {".g3", "image/fax-g3"},
  79. {".gcrd", "text/directory"},
  80. {".gif", "image/gif"},
  81. {".gv", "text/vnd.graphviz"},
  82. {".gvp", "text/x-google-video-pointer"},
  83. {".h", "text/x-chdr"},
  84. {".h++", "text/x-c++hdr"},
  85. {".hh", "text/x-c++hdr"},
  86. {".hp", "text/x-c++hdr"},
  87. {".hpp", "text/x-c++hdr"},
  88. {".hs", "text/x-haskell"},
  89. {".htm", "text/html"},
  90. {".html", "text/html"},
  91. {".hxx", "text/x-c++hdr"},
  92. {".icb", "image/x-tga"},
  93. {".icns", "image/x-icns"},
  94. {".ico", "image/x-icon"},
  95. {".ics", "text/calendar"},
  96. {".idl", "text/x-idl"},
  97. {".ief", "image/ief"},
  98. {".iff", "image/x-iff"},
  99. {".ilbm", "image/x-ilbm"},
  100. {".ime", "text/x-imelody"},
  101. {".imy", "text/x-imelody"},
  102. {".ins", "text/x-tex"},
  103. {".iptables", "text/x-iptables"},
  104. {".j2k", "image/jp2"},
  105. {".jad", "text/vnd.sun.j2me.app-descriptor"},
  106. {".java", "text/x-java"},
  107. {".jng", "image/x-jng"},
  108. {".jp2", "image/jp2"},
  109. {".jpc", "image/jp2"},
  110. {".jpe", "image/jpeg"},
  111. {".jpeg", "image/jpeg"},
  112. {".jpf", "image/jp2"},
  113. {".jpg", "image/jpeg"},
  114. {".jpx", "image/jp2"},
  115. {".js", "application/javascript"},
  116. {".json", "application/json"},
  117. {".jsonp", "application/jsonp"},
  118. {".k25", "image/x-kodak-k25"},
  119. {".kdc", "image/x-kodak-kdc"},
  120. {".latex", "text/x-tex"},
  121. {".ldif", "text/x-ldif"},
  122. {".lhs", "text/x-literate-haskell"},
  123. {".log", "text/x-log"},
  124. {".ltx", "text/x-tex"},
  125. {".lua", "text/x-lua"},
  126. {".lwo", "image/x-lwo"},
  127. {".lwob", "image/x-lwo"},
  128. {".lws", "image/x-lws"},
  129. {".ly", "text/x-lilypond"},
  130. {".m", "text/x-matlab"},
  131. {".m2t", "video/mpeg"},
  132. {".m3u", "audio/x-mpegurl"},
  133. {".m3u8", "application/vnd.apple.mpegurl"},
  134. {".me", "text/x-troff-me"},
  135. {".mkv", "video/x-matroska"},
  136. {".ml", "text/x-ocaml"},
  137. {".mli", "text/x-ocaml"},
  138. {".mm", "text/x-troff-mm"},
  139. {".mml", "text/mathml"},
  140. {".moc", "text/x-moc"},
  141. {".mof", "text/x-mof"},
  142. {".mp2", "video/mpeg"},
  143. {".mp3", "audio/mpeg"},
  144. {".mp4", "video/mp4"},
  145. {".mpe", "video/mpeg"},
  146. {".mpeg", "video/mpeg"},
  147. {".mpg", "video/mpeg"},
  148. {".mrl", "text/x-mrml"},
  149. {".mrml", "text/x-mrml"},
  150. {".mrw", "image/x-minolta-mrw"},
  151. {".ms", "text/x-troff-ms"},
  152. {".msod", "image/x-msod"},
  153. {".mup", "text/x-mup"},
  154. {".nef", "image/x-nikon-nef"},
  155. {".nfo", "text/x-nfo"},
  156. {".not", "text/x-mup"},
  157. {".ocl", "text/x-ocl"},
  158. {".opml", "text/x-opml+xml"},
  159. {".ora", "image/openraster"},
  160. {".orf", "image/x-olympus-orf"},
  161. {".p", "text/x-pascal"},
  162. {".pas", "text/x-pascal"},
  163. {".patch", "text/x-patch"},
  164. {".pbm", "image/x-portable-bitmap"},
  165. {".pcd", "image/x-photo-cd"},
  166. {".pcx", "image/x-pcx"},
  167. {".pdf", "application/pdf"},
  168. {".pef", "image/x-pentax-pef"},
  169. {".pgm", "image/x-portable-graymap"},
  170. {".pict", "image/x-pict"},
  171. {".pict1", "image/x-pict"},
  172. {".pict2", "image/x-pict"},
  173. {".png", "image/png"},
  174. {".pnm", "image/x-portable-anymap"},
  175. {".pntg", "image/x-macpaint"},
  176. {".po", "text/x-gettext-translation"},
  177. {".pot", "text/x-gettext-translation-template"},
  178. {".py", "text/x-python"},
  179. {".qif", "image/x-quicktime"},
  180. {".qtif", "image/x-quicktime"},
  181. {".raf", "image/x-fuji-raf"},
  182. {".ras", "image/x-cmu-raster"},
  183. {".raw", "image/x-panasonic-raw"},
  184. {".reg", "text/x-ms-regedit"},
  185. {".rgb", "image/x-rgb"},
  186. {".rle", "image/rle"},
  187. {".roff", "text/troff"},
  188. {".rp", "image/vnd.rn-realpix"},
  189. {".rt", "text/vnd.rn-realtext"},
  190. {".rtx", "text/richtext"},
  191. {".scm", "text/x-scheme"},
  192. {".sgi", "image/x-sgi"},
  193. {".sgm", "text/sgml"},
  194. {".sgml", "text/sgml"},
  195. {".sk", "image/x-skencil"},
  196. {".sk1", "image/x-skencil"},
  197. {".slk", "text/spreadsheet"},
  198. {".spec", "text/x-rpm-spec"},
  199. {".sql", "text/x-sql"},
  200. {".sr2", "image/x-sony-sr2"},
  201. {".srf", "image/x-sony-srf"},
  202. {".ssa", "text/x-ssa"},
  203. {".sty", "text/x-tex"},
  204. {".sub", "text/x-subviewer"},
  205. {".sun", "image/x-sun-raster"},
  206. {".svg", "image/svg+xml"},
  207. {".svgz", "image/svg+xml-compressed"},
  208. {".sylk", "text/spreadsheet"},
  209. {".t2t", "text/x-txt2tags"},
  210. {".tcl", "text/x-tcl"},
  211. {".tex", "text/x-tex"},
  212. {".texi", "text/x-texinfo"},
  213. {".texinfo", "text/x-texinfo"},
  214. {".tga", "image/x-tga"},
  215. {".tif", "image/tiff"},
  216. {".tiff", "image/tiff"},
  217. {".tk", "text/x-tcl"},
  218. {".tpic", "image/x-tga"},
  219. {".tr", "text/troff"},
  220. {".txt", "text/plain"},
  221. {".vob", "video/mpeg"},
  222. {".voc", "audio/x-voc"},
  223. {".wmf", "image/x-wmf"},
  224. {".wml", "text/vnd.wap.wml"},
  225. {".wmls", "text/vnd.wap.wmlscript"},
  226. {".wmv", "video/x-ms-wmv"},
  227. {".xhtml", "application/xhtml+xml"},
  228. {".xml", "application/xml"}
  229. };
  230. }
  231. }