DefaultMimeItems.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. using System.Collections.Generic;
  2. using System.Collections.ObjectModel;
  3. namespace Masuit.Tools.AspNetCore.Mime
  4. {
  5. internal static class DefaultMimeItems
  6. {
  7. public static ReadOnlyCollection<MimeMappingItem> Items = new List<MimeMappingItem>
  8. {
  9. new MimeMappingItem{Extension = "abs", MimeType = "audio/x-mpeg"},
  10. new MimeMappingItem{Extension = "ai", MimeType = "application/postscript"},
  11. new MimeMappingItem{Extension = "aif", MimeType = "audio/x-aiff"},
  12. new MimeMappingItem{Extension = "aifc", MimeType = "audio/x-aiff"},
  13. new MimeMappingItem{Extension = "aiff", MimeType = "audio/x-aiff"},
  14. new MimeMappingItem{Extension = "aim", MimeType = "application/x-aim"},
  15. new MimeMappingItem{Extension = "art", MimeType = "image/x-jg"},
  16. new MimeMappingItem{Extension = "asf", MimeType = "video/x-ms-asf"},
  17. new MimeMappingItem{Extension = "asx", MimeType = "video/x-ms-asf"},
  18. new MimeMappingItem{Extension = "au", MimeType = "audio/basic"},
  19. new MimeMappingItem{Extension = "avi", MimeType = "video/x-msvideo"},
  20. new MimeMappingItem{Extension = "avx", MimeType = "video/x-rad-screenplay"},
  21. new MimeMappingItem{Extension = "bcpio", MimeType = "application/x-bcpio"},
  22. new MimeMappingItem{Extension = "bin", MimeType = "application/octet-stream"},
  23. new MimeMappingItem{Extension = "bmp", MimeType = "image/bmp"},
  24. new MimeMappingItem{Extension = "body", MimeType = "text/html"},
  25. new MimeMappingItem{Extension = "cdf", MimeType = "application/x-cdf"},
  26. new MimeMappingItem{Extension = "cer", MimeType = "application/x-x509-ca-cert"},
  27. new MimeMappingItem{Extension = "class", MimeType = "application/java"},
  28. new MimeMappingItem{Extension = "cpio", MimeType = "application/x-cpio"},
  29. new MimeMappingItem{Extension = "csh", MimeType = "application/x-csh"},
  30. new MimeMappingItem{Extension = "css", MimeType = "text/css"},
  31. new MimeMappingItem{Extension = "dib", MimeType = "image/bmp"},
  32. new MimeMappingItem{Extension = "doc", MimeType = "application/msword"},
  33. new MimeMappingItem{Extension = "dtd", MimeType = "application/xml-dtd"},
  34. new MimeMappingItem{Extension = "dv", MimeType = "video/x-dv"},
  35. new MimeMappingItem{Extension = "dvi", MimeType = "application/x-dvi"},
  36. new MimeMappingItem{Extension = "eps", MimeType = "application/postscript"},
  37. new MimeMappingItem{Extension = "etx", MimeType = "text/x-setext"},
  38. new MimeMappingItem{Extension = "exe", MimeType = "application/octet-stream"},
  39. new MimeMappingItem{Extension = "gif", MimeType = "image/gif"},
  40. new MimeMappingItem{Extension = "gtar", MimeType = "application/x-gtar"},
  41. new MimeMappingItem{Extension = "gz", MimeType = "application/x-gzip"},
  42. new MimeMappingItem{Extension = "ogv", MimeType = "video/ogg"},
  43. new MimeMappingItem{Extension = "oga", MimeType = "audio/ogg"},
  44. new MimeMappingItem{Extension = "ogg", MimeType = "audio/ogg"},
  45. new MimeMappingItem{Extension = "hdf", MimeType = "application/x-hdf"},
  46. new MimeMappingItem{Extension = "htc", MimeType = "text/x-component"},
  47. new MimeMappingItem{Extension = "htm", MimeType = "text/html"},
  48. new MimeMappingItem{Extension = "html", MimeType = "text/html"},
  49. new MimeMappingItem{Extension = "hqx", MimeType = "application/mac-binhex40"},
  50. new MimeMappingItem{Extension = "ief", MimeType = "image/ief"},
  51. new MimeMappingItem{Extension = "jad", MimeType = "text/vnd.sun.j2me.app-descriptor"},
  52. new MimeMappingItem{Extension = "jar", MimeType = "application/java-archive"},
  53. new MimeMappingItem{Extension = "java", MimeType = "text/plain"},
  54. new MimeMappingItem{Extension = "jnlp", MimeType = "application/x-java-jnlp-file"},
  55. new MimeMappingItem{Extension = "jpe", MimeType = "image/jpeg"},
  56. new MimeMappingItem{Extension = "jpeg", MimeType = "image/jpeg"},
  57. new MimeMappingItem{Extension = "jpg", MimeType = "image/jpeg"},
  58. new MimeMappingItem{Extension = "js", MimeType = "text/javascript"},
  59. new MimeMappingItem{Extension = "jsf", MimeType = "text/plain"},
  60. new MimeMappingItem{Extension = "jspf", MimeType = "text/plain"},
  61. new MimeMappingItem{Extension = "kar", MimeType = "audio/x-midi"},
  62. new MimeMappingItem{Extension = "latex", MimeType = "application/x-latex"},
  63. new MimeMappingItem{Extension = "m3u", MimeType = "audio/x-mpegurl"},
  64. new MimeMappingItem{Extension = "mac", MimeType = "image/x-macpaint"},
  65. new MimeMappingItem{Extension = "man", MimeType = "application/x-troff-man"},
  66. new MimeMappingItem{Extension = "mathml", MimeType = "application/mathml+xml"},
  67. new MimeMappingItem{Extension = "me", MimeType = "application/x-troff-me"},
  68. new MimeMappingItem{Extension = "mid", MimeType = "audio/x-midi"},
  69. new MimeMappingItem{Extension = "midi", MimeType = "audio/x-midi"},
  70. new MimeMappingItem{Extension = "mif", MimeType = "application/x-mif"},
  71. new MimeMappingItem{Extension = "mov", MimeType = "video/quicktime"},
  72. new MimeMappingItem{Extension = "movie", MimeType = "video/x-sgi-movie"},
  73. new MimeMappingItem{Extension = "mp1", MimeType = "audio/x-mpeg"},
  74. new MimeMappingItem{Extension = "mp2", MimeType = "audio/x-mpeg"},
  75. new MimeMappingItem{Extension = "mp3", MimeType = "audio/x-mpeg"},
  76. new MimeMappingItem{Extension = "mp4", MimeType = "video/mp4"},
  77. new MimeMappingItem{Extension = "mpa", MimeType = "audio/x-mpeg"},
  78. new MimeMappingItem{Extension = "mpe", MimeType = "video/mpeg"},
  79. new MimeMappingItem{Extension = "mpeg", MimeType = "video/mpeg"},
  80. new MimeMappingItem{Extension = "mpega", MimeType = "audio/x-mpeg"},
  81. new MimeMappingItem{Extension = "mpg", MimeType = "video/mpeg"},
  82. new MimeMappingItem{Extension = "mpv2", MimeType = "video/mpeg2"},
  83. new MimeMappingItem{Extension = "ms", MimeType = "application/x-wais-source"},
  84. new MimeMappingItem{Extension = "nc", MimeType = "application/x-netcdf"},
  85. new MimeMappingItem{Extension = "oda", MimeType = "application/oda"},
  86. //<!-- OpenDocument Database -->
  87. new MimeMappingItem{Extension = "odb", MimeType = "application/vnd.oasis.opendocument.database"},
  88. //<!-- OpenDocument Chart -->
  89. new MimeMappingItem{Extension = "odc", MimeType = "application/vnd.oasis.opendocument.chart"},
  90. //<!-- OpenDocument Formula -->
  91. new MimeMappingItem{Extension = "odf", MimeType = "application/vnd.oasis.opendocument.formula"},
  92. //<!-- OpenDocument Drawing -->
  93. new MimeMappingItem{Extension = "odg", MimeType = "application/vnd.oasis.opendocument.graphics"},
  94. //<!-- OpenDocument Image -->
  95. new MimeMappingItem{Extension = "odi", MimeType = "application/vnd.oasis.opendocument.image"},
  96. //<!-- OpenDocument Master Document -->
  97. new MimeMappingItem{Extension = "odm", MimeType = "application/vnd.oasis.opendocument.text-master"},
  98. //<!-- OpenDocument Presentation -->
  99. new MimeMappingItem{Extension = "odp", MimeType = "application/vnd.oasis.opendocument.presentation"},
  100. //<!-- OpenDocument Spreadsheet -->
  101. new MimeMappingItem{Extension = "ods", MimeType = "application/vnd.oasis.opendocument.spreadsheet"},
  102. //<!-- OpenDocument Text -->
  103. new MimeMappingItem{Extension = "odt", MimeType = "application/vnd.oasis.opendocument.text"},
  104. //<!-- OpenDocument Drawing Template -->
  105. new MimeMappingItem{Extension = "otg ", MimeType = "application/vnd.oasis.opendocument.graphics-template"},
  106. //<!-- HTML Document Template -->
  107. new MimeMappingItem{Extension = "oth", MimeType = "application/vnd.oasis.opendocument.text-web"},
  108. //<!-- OpenDocument Presentation Template -->
  109. new MimeMappingItem{Extension = "otp", MimeType = "application/vnd.oasis.opendocument.presentation-template"},
  110. //<!-- OpenDocument Spreadsheet Template -->
  111. new MimeMappingItem{Extension = "ots", MimeType = "application/vnd.oasis.opendocument.spreadsheet-template "},
  112. //<!-- OpenDocument Text Template -->
  113. new MimeMappingItem{Extension = "ott", MimeType = "application/vnd.oasis.opendocument.text-template"},
  114. new MimeMappingItem{Extension = "pbm", MimeType = "image/x-portable-bitmap"},
  115. new MimeMappingItem{Extension = "pct", MimeType = "image/pict"},
  116. new MimeMappingItem{Extension = "pdf", MimeType = "application/pdf"},
  117. new MimeMappingItem{Extension = "pgm", MimeType = "image/x-portable-graymap"},
  118. new MimeMappingItem{Extension = "pic", MimeType = "image/pict"},
  119. new MimeMappingItem{Extension = "pict", MimeType = "image/pict"},
  120. new MimeMappingItem{Extension = "pls", MimeType = "audio/x-scpls"},
  121. new MimeMappingItem{Extension = "png", MimeType = "image/png"},
  122. new MimeMappingItem{Extension = "pnm", MimeType = "image/x-portable-anymap"},
  123. new MimeMappingItem{Extension = "pnt", MimeType = "image/x-macpaint"},
  124. new MimeMappingItem{Extension = "ppm", MimeType = "image/x-portable-pixmap"},
  125. new MimeMappingItem{Extension = "ppt", MimeType = "application/vnd.ms-powerpoint"},
  126. new MimeMappingItem{Extension = "pps", MimeType = "application/vnd.ms-powerpoint"},
  127. new MimeMappingItem{Extension = "ps", MimeType = "application/postscript"},
  128. new MimeMappingItem{Extension = "psd", MimeType = "image/x-photoshop"},
  129. new MimeMappingItem{Extension = "qt", MimeType = "video/quicktime"},
  130. new MimeMappingItem{Extension = "qti", MimeType = "image/x-quicktime"},
  131. new MimeMappingItem{Extension = "qtif", MimeType = "image/x-quicktime"},
  132. new MimeMappingItem{Extension = "ras", MimeType = "image/x-cmu-raster"},
  133. new MimeMappingItem{Extension = "rdf", MimeType = "application/rdf+xml"},
  134. new MimeMappingItem{Extension = "rgb", MimeType = "image/x-rgb"},
  135. new MimeMappingItem{Extension = "rm", MimeType = "application/vnd.rn-realmedia"},
  136. new MimeMappingItem{Extension = "roff", MimeType = "application/x-troff"},
  137. new MimeMappingItem{Extension = "rtf", MimeType = "application/rtf"},
  138. new MimeMappingItem{Extension = "rtx", MimeType = "text/richtext"},
  139. new MimeMappingItem{Extension = "sh", MimeType = "application/x-sh"},
  140. new MimeMappingItem{Extension = "shar", MimeType = "application/x-shar"},
  141. new MimeMappingItem{Extension = "smf", MimeType = "audio/x-midi"},
  142. new MimeMappingItem{Extension = "sit", MimeType = "application/x-stuffit"},
  143. new MimeMappingItem{Extension = "snd", MimeType = "audio/basic"},
  144. new MimeMappingItem{Extension = "src", MimeType = "application/x-wais-source"},
  145. new MimeMappingItem{Extension = "sv4cpio", MimeType = "application/x-sv4cpio"},
  146. new MimeMappingItem{Extension = "sv4crc", MimeType = "application/x-sv4crc"},
  147. new MimeMappingItem{Extension = "svg", MimeType = "image/svg+xml"},
  148. new MimeMappingItem{Extension = "svgz", MimeType = "image/svg+xml"},
  149. new MimeMappingItem{Extension = "swf", MimeType = "application/x-shockwave-flash"},
  150. new MimeMappingItem{Extension = "t", MimeType = "application/x-troff"},
  151. new MimeMappingItem{Extension = "tar", MimeType = "application/x-tar"},
  152. new MimeMappingItem{Extension = "tcl", MimeType = "application/x-tcl"},
  153. new MimeMappingItem{Extension = "tex", MimeType = "application/x-tex"},
  154. new MimeMappingItem{Extension = "texi", MimeType = "application/x-texinfo"},
  155. new MimeMappingItem{Extension = "texinfo", MimeType = "application/x-texinfo"},
  156. new MimeMappingItem{Extension = "tif", MimeType = "image/tiff"},
  157. new MimeMappingItem{Extension = "tiff", MimeType = "image/tiff"},
  158. new MimeMappingItem{Extension = "tr", MimeType = "application/x-troff"},
  159. new MimeMappingItem{Extension = "tsv", MimeType = "text/tab-separated-values"},
  160. new MimeMappingItem{Extension = "ttf", MimeType = "application/x-font-ttf"},
  161. new MimeMappingItem{Extension = "txt", MimeType = "text/plain"},
  162. new MimeMappingItem{Extension = "ulw", MimeType = "audio/basic"},
  163. new MimeMappingItem{Extension = "ustar", MimeType = "application/x-ustar"},
  164. new MimeMappingItem{Extension = "vxml", MimeType = "application/voicexml+xml"},
  165. new MimeMappingItem{Extension = "xbm", MimeType = "image/x-xbitmap"},
  166. new MimeMappingItem{Extension = "xht", MimeType = "application/xhtml+xml"},
  167. new MimeMappingItem{Extension = "xhtml", MimeType = "application/xhtml+xml"},
  168. new MimeMappingItem{Extension = "xls", MimeType = "application/vnd.ms-excel"},
  169. new MimeMappingItem{Extension = "xml", MimeType = "application/xml"},
  170. new MimeMappingItem{Extension = "xpm", MimeType = "image/x-xpixmap"},
  171. new MimeMappingItem{Extension = "xsl", MimeType = "application/xml"},
  172. new MimeMappingItem{Extension = "xslt", MimeType = "application/xslt+xml"},
  173. new MimeMappingItem{Extension = "xul", MimeType = "application/vnd.mozilla.xul+xml"},
  174. new MimeMappingItem{Extension = "xwd", MimeType = "image/x-xwindowdump"},
  175. new MimeMappingItem{Extension = "vsd", MimeType = "application/x-visio"},
  176. new MimeMappingItem{Extension = "wav", MimeType = "audio/x-wav"},
  177. //<!-- Wireless Bitmap -->
  178. new MimeMappingItem{Extension = "wbmp", MimeType = "image/vnd.wap.wbmp"},
  179. //<!-- WML Source -->
  180. new MimeMappingItem{Extension = "wml", MimeType = "text/vnd.wap.wml"},
  181. //<!-- Compiled WML -->
  182. new MimeMappingItem{Extension = "wmlc", MimeType = "application/vnd.wap.wmlc"},
  183. //<!-- WML Script Source -->
  184. new MimeMappingItem{Extension = "wmls", MimeType = "text/vnd.wap.wmlscript"},
  185. //<!-- Compiled WML Script -->
  186. new MimeMappingItem{Extension = "wmlscriptc", MimeType = "application/vnd.wap.wmlscriptc"},
  187. new MimeMappingItem{Extension = "wmv", MimeType = "video/x-ms-wmv"},
  188. new MimeMappingItem{Extension = "woff", MimeType = "font/woff2"},
  189. new MimeMappingItem{Extension = "woff2", MimeType = "font/woff2"},
  190. new MimeMappingItem{Extension = "wrl", MimeType = "x-world/x-vrml"},
  191. new MimeMappingItem{Extension = "wspolicy", MimeType = "application/wspolicy+xml"},
  192. new MimeMappingItem{Extension = "Z", MimeType = "application/x-compress"},
  193. new MimeMappingItem{Extension = "z", MimeType = "application/x-compress"},
  194. new MimeMappingItem{Extension = "zip", MimeType = "application/zip"},
  195. }.AsReadOnly();
  196. }
  197. }