ContentTypeDict.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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> extdict = new Dictionary<string, string> {
  9. {"video/3gpp",".3g2"},
  10. {"audio/mp4",".aac"},
  11. {"audio/ac3",".ac3"},
  12. {"text/x-adasrc",".adb"},
  13. {"image/x-applix-graphics",".ag"},
  14. {"audio/amr",".amr"},
  15. {"audio/x-ape",".ape"},
  16. {"image/x-sony-arw",".arw"},
  17. {"text/plain",".asc"},
  18. {"video/x-ms-asf",".asf"},
  19. {"text/x-ssa",".ass"},
  20. {"video/x-msvideo",".avi"},
  21. {"text/x-bibtex",".bib"},
  22. {"image/bmp",".bmp"},
  23. {"text/x-csrc",".c"},
  24. {"text/x-c++src",".c++"},
  25. {"image/cgm",".cgm"},
  26. {"text/x-tex",".cls"},
  27. {"text/x-cmake",".cmake"},
  28. {"image/x-canon-cr2",".cr2"},
  29. {"image/x-canon-crw",".crw"},
  30. {"text/x-csharp",".cs"},
  31. {"text/css",".css"},
  32. {"text/csv",".csv"},
  33. {"image/x-win-bitmap",".cur"},
  34. {"text/x-dsrc",".d"},
  35. {"text/x-dcl",".dcl"},
  36. {"image/x-kodak-dcr",".dcr"},
  37. {"image/x-dds",".dds"},
  38. {"text/x-patch",".diff"},
  39. {"image/vnd.djvu",".djv"},
  40. {"image/x-adobe-dng",".dng"},
  41. {"text/vnd.graphviz",".dot"},
  42. {"text/x-dsl",".dsl"},
  43. {"image/vnd.dwg",".dwg"},
  44. {"image/vnd.dxf",".dxf"},
  45. {"text/x-eiffel",".e"},
  46. {"text/x-emacs-lisp",".el"},
  47. {"image/x-emf",".emf"},
  48. {"image/x-eps",".eps"},
  49. {"image/x-bzeps",".eps.bz2"},
  50. {"image/x-gzeps",".eps.gz"},
  51. {"text/x-erlang",".erl"},
  52. {"text/x-setext",".etx"},
  53. {"image/x-exr",".exr"},
  54. {"text/x-fortran",".f"},
  55. {"image/x-xfig",".fig"},
  56. {"image/fits",".fits"},
  57. {"video/x-flv",".flv"},
  58. {"text/x-xslfo",".fo"},
  59. {"image/fax-g3",".g3"},
  60. {"text/directory",".gcrd"},
  61. {"image/gif",".gif"},
  62. {"text/x-google-video-pointer",".gvp"},
  63. {"text/x-chdr",".h"},
  64. {"text/x-c++hdr",".h++"},
  65. {"text/x-haskell",".hs"},
  66. {"text/html",".htm"},
  67. {"image/x-tga",".icb"},
  68. {"image/x-icns",".icns"},
  69. {"image/x-icon",".ico"},
  70. {"text/calendar",".ics"},
  71. {"text/x-idl",".idl"},
  72. {"image/ief",".ief"},
  73. {"image/x-iff",".iff"},
  74. {"image/x-ilbm",".ilbm"},
  75. {"text/x-imelody",".ime"},
  76. {"text/x-iptables",".iptables"},
  77. {"image/jp2",".j2k"},
  78. {"text/vnd.sun.j2me.app-descriptor",".jad"},
  79. {"text/x-java",".java"},
  80. {"image/x-jng",".jng"},
  81. {"image/jpeg",".jpe"},
  82. {"application/javascript",".js"},
  83. {"application/json",".json"},
  84. {"application/jsonp",".jsonp"},
  85. {"image/x-kodak-k25",".k25"},
  86. {"image/x-kodak-kdc",".kdc"},
  87. {"text/x-ldif",".ldif"},
  88. {"text/x-literate-haskell",".lhs"},
  89. {"text/x-log",".log"},
  90. {"text/x-lua",".lua"},
  91. {"image/x-lwo",".lwo"},
  92. {"image/x-lws",".lws"},
  93. {"text/x-lilypond",".ly"},
  94. {"text/x-matlab",".m"},
  95. {"video/mpeg",".m2t"},
  96. {"audio/x-mpegurl",".m3u"},
  97. {"application/vnd.apple.mpegurl",".m3u8"},
  98. {"text/x-troff-me",".me"},
  99. {"video/x-matroska",".mkv"},
  100. {"text/x-ocaml",".ml"},
  101. {"text/x-troff-mm",".mm"},
  102. {"text/mathml",".mml"},
  103. {"text/x-moc",".moc"},
  104. {"text/x-mof",".mof"},
  105. {"audio/mpeg",".mp3"},
  106. {"video/mp4",".mp4"},
  107. {"text/x-mrml",".mrl"},
  108. {"image/x-minolta-mrw",".mrw"},
  109. {"text/x-troff-ms",".ms"},
  110. {"image/x-msod",".msod"},
  111. {"text/x-mup",".mup"},
  112. {"image/x-nikon-nef",".nef"},
  113. {"text/x-nfo",".nfo"},
  114. {"text/x-ocl",".ocl"},
  115. {"text/x-opml+xml",".opml"},
  116. {"image/openraster",".ora"},
  117. {"image/x-olympus-orf",".orf"},
  118. {"text/x-pascal",".p"},
  119. {"image/x-portable-bitmap",".pbm"},
  120. {"image/x-photo-cd",".pcd"},
  121. {"image/x-pcx",".pcx"},
  122. {"application/pdf",".pdf"},
  123. {"image/x-pentax-pef",".pef"},
  124. {"image/x-portable-graymap",".pgm"},
  125. {"image/x-pict",".pict"},
  126. {"image/png",".png"},
  127. {"image/x-portable-anymap",".pnm"},
  128. {"image/x-macpaint",".pntg"},
  129. {"text/x-gettext-translation",".po"},
  130. {"text/x-gettext-translation-template",".pot"},
  131. {"text/x-python",".py"},
  132. {"image/x-quicktime",".qif"},
  133. {"image/x-fuji-raf",".raf"},
  134. {"image/x-cmu-raster",".ras"},
  135. {"image/x-panasonic-raw",".raw"},
  136. {"text/x-ms-regedit",".reg"},
  137. {"image/x-rgb",".rgb"},
  138. {"image/rle",".rle"},
  139. {"text/troff",".roff"},
  140. {"image/vnd.rn-realpix",".rp"},
  141. {"text/vnd.rn-realtext",".rt"},
  142. {"text/richtext",".rtx"},
  143. {"text/x-scheme",".scm"},
  144. {"image/x-sgi",".sgi"},
  145. {"text/sgml",".sgm"},
  146. {"image/x-skencil",".sk"},
  147. {"text/spreadsheet",".slk"},
  148. {"text/x-rpm-spec",".spec"},
  149. {"text/x-sql",".sql"},
  150. {"image/x-sony-sr2",".sr2"},
  151. {"image/x-sony-srf",".srf"},
  152. {"text/x-subviewer",".sub"},
  153. {"image/x-sun-raster",".sun"},
  154. {"image/svg+xml",".svg"},
  155. {"image/svg+xml-compressed",".svgz"},
  156. {"text/x-txt2tags",".t2t"},
  157. {"text/x-tcl",".tcl"},
  158. {"text/x-texinfo",".texi"},
  159. {"image/tiff",".tif"},
  160. {"audio/x-voc",".voc"},
  161. {"image/x-wmf",".wmf"},
  162. {"text/vnd.wap.wml",".wml"},
  163. {"text/vnd.wap.wmlscript",".wmls"},
  164. {"video/x-ms-wmv",".wmv"},
  165. {"application/xhtml+xml",".xhtml"},
  166. {"application/xml",".xml"}
  167. };
  168. public static readonly Dictionary<string, string> dict = new Dictionary<string, string> {
  169. {".3g2", "video/3gpp"},
  170. {".3ga", "video/3gpp"},
  171. {".3gp", "video/3gpp"},
  172. {".aac", "audio/mp4"},
  173. {".ac3", "audio/ac3"},
  174. {".adb", "text/x-adasrc"},
  175. {".ads", "text/x-adasrc"},
  176. {".ag", "image/x-applix-graphics"},
  177. {".amr", "audio/amr"},
  178. {".ape", "audio/x-ape"},
  179. {".arw", "image/x-sony-arw"},
  180. {".asc", "text/plain"},
  181. {".asf", "video/x-ms-asf"},
  182. {".ass", "text/x-ssa"},
  183. {".avi", "video/x-msvideo"},
  184. {".bib", "text/x-bibtex"},
  185. {".bmp", "image/bmp"},
  186. {".c", "text/x-csrc"},
  187. {".c++", "text/x-c++src"},
  188. {".cc", "text/x-c++src"},
  189. {".cgm", "image/cgm"},
  190. {".cls", "text/x-tex"},
  191. {".cmake", "text/x-cmake"},
  192. {".cpp", "text/x-c++src"},
  193. {".cr2", "image/x-canon-cr2"},
  194. {".crw", "image/x-canon-crw"},
  195. {".cs", "text/x-csharp"},
  196. {".css", "text/css"},
  197. {".cssl", "text/css"},
  198. {".csv", "text/csv"},
  199. {".cur", "image/x-win-bitmap"},
  200. {".cxx", "text/x-c++src"},
  201. {".d", "text/x-dsrc"},
  202. {".dcl", "text/x-dcl"},
  203. {".dcr", "image/x-kodak-dcr"},
  204. {".dds", "image/x-dds"},
  205. {".diff", "text/x-patch"},
  206. {".djv", "image/vnd.djvu"},
  207. {".djvu", "image/vnd.djvu"},
  208. {".dng", "image/x-adobe-dng"},
  209. {".dot", "text/vnd.graphviz"},
  210. {".dsl", "text/x-dsl"},
  211. {".dtx", "text/x-tex"},
  212. {".dwg", "image/vnd.dwg"},
  213. {".dxf", "image/vnd.dxf"},
  214. {".e", "text/x-eiffel"},
  215. {".eif", "text/x-eiffel"},
  216. {".el", "text/x-emacs-lisp"},
  217. {".emf", "image/x-emf"},
  218. {".eps", "image/x-eps"},
  219. {".eps.bz2", "image/x-bzeps"},
  220. {".eps.gz", "image/x-gzeps"},
  221. {".epsf", "image/x-eps"},
  222. {".epsf.bz2", "image/x-bzeps"},
  223. {".epsf.gz", "image/x-gzeps"},
  224. {".epsi", "image/x-eps"},
  225. {".epsi.bz2", "image/x-bzeps"},
  226. {".epsi.gz", "image/x-gzeps"},
  227. {".erl", "text/x-erlang"},
  228. {".etx", "text/x-setext"},
  229. {".exr", "image/x-exr"},
  230. {".f", "text/x-fortran"},
  231. {".f90", "text/x-fortran"},
  232. {".f95", "text/x-fortran"},
  233. {".fig", "image/x-xfig"},
  234. {".fits", "image/fits"},
  235. {".flv", "video/x-flv"},
  236. {".fo", "text/x-xslfo"},
  237. {".for", "text/x-fortran"},
  238. {".g3", "image/fax-g3"},
  239. {".gcrd", "text/directory"},
  240. {".gif", "image/gif"},
  241. {".gv", "text/vnd.graphviz"},
  242. {".gvp", "text/x-google-video-pointer"},
  243. {".h", "text/x-chdr"},
  244. {".h++", "text/x-c++hdr"},
  245. {".hh", "text/x-c++hdr"},
  246. {".hp", "text/x-c++hdr"},
  247. {".hpp", "text/x-c++hdr"},
  248. {".hs", "text/x-haskell"},
  249. {".htm", "text/html"},
  250. {".html", "text/html"},
  251. {".hxx", "text/x-c++hdr"},
  252. {".icb", "image/x-tga"},
  253. {".icns", "image/x-icns"},
  254. {".ico", "image/x-icon"},
  255. {".ics", "text/calendar"},
  256. {".idl", "text/x-idl"},
  257. {".ief", "image/ief"},
  258. {".iff", "image/x-iff"},
  259. {".ilbm", "image/x-ilbm"},
  260. {".ime", "text/x-imelody"},
  261. {".imy", "text/x-imelody"},
  262. {".ins", "text/x-tex"},
  263. {".iptables", "text/x-iptables"},
  264. {".j2k", "image/jp2"},
  265. {".jad", "text/vnd.sun.j2me.app-descriptor"},
  266. {".java", "text/x-java"},
  267. {".jng", "image/x-jng"},
  268. {".jp2", "image/jp2"},
  269. {".jpc", "image/jp2"},
  270. {".jpe", "image/jpeg"},
  271. {".jpeg", "image/jpeg"},
  272. {".jpf", "image/jp2"},
  273. {".jpg", "image/jpeg"},
  274. {".jpx", "image/jp2"},
  275. {".js", "application/javascript"},
  276. {".json", "application/json"},
  277. {".jsonp", "application/jsonp"},
  278. {".k25", "image/x-kodak-k25"},
  279. {".kdc", "image/x-kodak-kdc"},
  280. {".latex", "text/x-tex"},
  281. {".ldif", "text/x-ldif"},
  282. {".lhs", "text/x-literate-haskell"},
  283. {".log", "text/x-log"},
  284. {".ltx", "text/x-tex"},
  285. {".lua", "text/x-lua"},
  286. {".lwo", "image/x-lwo"},
  287. {".lwob", "image/x-lwo"},
  288. {".lws", "image/x-lws"},
  289. {".ly", "text/x-lilypond"},
  290. {".m", "text/x-matlab"},
  291. {".m2t", "video/mpeg"},
  292. {".m3u", "audio/x-mpegurl"},
  293. {".m3u8", "application/vnd.apple.mpegurl"},
  294. {".me", "text/x-troff-me"},
  295. {".mkv", "video/x-matroska"},
  296. {".ml", "text/x-ocaml"},
  297. {".mli", "text/x-ocaml"},
  298. {".mm", "text/x-troff-mm"},
  299. {".mml", "text/mathml"},
  300. {".moc", "text/x-moc"},
  301. {".mof", "text/x-mof"},
  302. {".mp2", "video/mpeg"},
  303. {".mp3", "audio/mpeg"},
  304. {".mp4", "video/mp4"},
  305. {".mpe", "video/mpeg"},
  306. {".mpeg", "video/mpeg"},
  307. {".mpg", "video/mpeg"},
  308. {".mrl", "text/x-mrml"},
  309. {".mrml", "text/x-mrml"},
  310. {".mrw", "image/x-minolta-mrw"},
  311. {".ms", "text/x-troff-ms"},
  312. {".msod", "image/x-msod"},
  313. {".mup", "text/x-mup"},
  314. {".nef", "image/x-nikon-nef"},
  315. {".nfo", "text/x-nfo"},
  316. {".not", "text/x-mup"},
  317. {".ocl", "text/x-ocl"},
  318. {".opml", "text/x-opml+xml"},
  319. {".ora", "image/openraster"},
  320. {".orf", "image/x-olympus-orf"},
  321. {".p", "text/x-pascal"},
  322. {".pas", "text/x-pascal"},
  323. {".patch", "text/x-patch"},
  324. {".pbm", "image/x-portable-bitmap"},
  325. {".pcd", "image/x-photo-cd"},
  326. {".pcx", "image/x-pcx"},
  327. {".pdf", "application/pdf"},
  328. {".pef", "image/x-pentax-pef"},
  329. {".pgm", "image/x-portable-graymap"},
  330. {".pict", "image/x-pict"},
  331. {".pict1", "image/x-pict"},
  332. {".pict2", "image/x-pict"},
  333. {".png", "image/png"},
  334. {".pnm", "image/x-portable-anymap"},
  335. {".pntg", "image/x-macpaint"},
  336. {".po", "text/x-gettext-translation"},
  337. {".pot", "text/x-gettext-translation-template"},
  338. {".py", "text/x-python"},
  339. {".qif", "image/x-quicktime"},
  340. {".qtif", "image/x-quicktime"},
  341. {".raf", "image/x-fuji-raf"},
  342. {".ras", "image/x-cmu-raster"},
  343. {".raw", "image/x-panasonic-raw"},
  344. {".reg", "text/x-ms-regedit"},
  345. {".rgb", "image/x-rgb"},
  346. {".rle", "image/rle"},
  347. {".roff", "text/troff"},
  348. {".rp", "image/vnd.rn-realpix"},
  349. {".rt", "text/vnd.rn-realtext"},
  350. {".rtx", "text/richtext"},
  351. {".scm", "text/x-scheme"},
  352. {".sgi", "image/x-sgi"},
  353. {".sgm", "text/sgml"},
  354. {".sgml", "text/sgml"},
  355. {".sk", "image/x-skencil"},
  356. {".sk1", "image/x-skencil"},
  357. {".slk", "text/spreadsheet"},
  358. {".spec", "text/x-rpm-spec"},
  359. {".sql", "text/x-sql"},
  360. {".sr2", "image/x-sony-sr2"},
  361. {".srf", "image/x-sony-srf"},
  362. {".ssa", "text/x-ssa"},
  363. {".sty", "text/x-tex"},
  364. {".sub", "text/x-subviewer"},
  365. {".sun", "image/x-sun-raster"},
  366. {".svg", "image/svg+xml"},
  367. {".svgz", "image/svg+xml-compressed"},
  368. {".sylk", "text/spreadsheet"},
  369. {".t2t", "text/x-txt2tags"},
  370. {".tcl", "text/x-tcl"},
  371. {".tex", "text/x-tex"},
  372. {".texi", "text/x-texinfo"},
  373. {".texinfo", "text/x-texinfo"},
  374. {".tga", "image/x-tga"},
  375. {".tif", "image/tiff"},
  376. {".tiff", "image/tiff"},
  377. {".tk", "text/x-tcl"},
  378. {".tpic", "image/x-tga"},
  379. {".tr", "text/troff"},
  380. {".txt", "text/plain"},
  381. {".vob", "video/mpeg"},
  382. {".voc", "audio/x-voc"},
  383. {".wmf", "image/x-wmf"},
  384. {".wml", "text/vnd.wap.wml"},
  385. {".wmls", "text/vnd.wap.wmlscript"},
  386. {".wmv", "video/x-ms-wmv"},
  387. {".xhtml", "application/xhtml+xml"},
  388. {".xml", "application/xml"}
  389. };
  390. }
  391. }