mimes.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?php
  2. /**
  3. * A list of mime types. Our list is generally more complete and accurate than
  4. * the operating system MIME list.
  5. *
  6. * If there are any missing options, please create a ticket on our issue tracker,
  7. * http://koseven.dev/trac/newticket. Be sure to give the filename and
  8. * expected MIME type, as well as any additional information you can provide.
  9. */
  10. return [
  11. '323' => ['text/h323'],
  12. '7z' => ['application/x-7z-compressed'],
  13. 'abw' => ['application/x-abiword'],
  14. 'acx' => ['application/internet-property-stream'],
  15. 'ai' => ['application/postscript'],
  16. 'aif' => ['audio/x-aiff'],
  17. 'aifc' => ['audio/x-aiff'],
  18. 'aiff' => ['audio/x-aiff'],
  19. 'amf' => ['application/x-amf'],
  20. 'appcache' => ['text/cache-manifest'],
  21. 'asf' => ['video/x-ms-asf'],
  22. 'asr' => ['video/x-ms-asf'],
  23. 'asx' => ['video/x-ms-asf'],
  24. 'atom' => ['application/atom+xml'],
  25. 'avi' => ['video/avi', 'video/msvideo', 'video/x-msvideo'],
  26. 'bin' => ['application/octet-stream','application/macbinary'],
  27. 'bmp' => ['image/bmp'],
  28. 'c' => ['text/x-csrc'],
  29. 'c++' => ['text/x-c++src'],
  30. 'cab' => ['application/x-cab'],
  31. 'cc' => ['text/x-c++src'],
  32. 'cda' => ['application/x-cdf'],
  33. 'class' => ['application/octet-stream'],
  34. 'cpp' => ['text/x-c++src'],
  35. 'cpt' => ['application/mac-compactpro'],
  36. 'csh' => ['text/x-csh'],
  37. 'css' => ['text/css'],
  38. 'csv' => ['text/x-comma-separated-values', 'application/vnd.ms-excel', 'text/comma-separated-values', 'text/csv'],
  39. 'dbk' => ['application/docbook+xml'],
  40. 'dcr' => ['application/x-director'],
  41. 'deb' => ['application/x-debian-package'],
  42. 'diff' => ['text/x-diff'],
  43. 'dir' => ['application/x-director'],
  44. 'divx' => ['video/divx'],
  45. 'dll' => ['application/octet-stream', 'application/x-msdos-program'],
  46. 'dmg' => ['application/x-apple-diskimage'],
  47. 'dms' => ['application/octet-stream'],
  48. 'doc' => ['application/msword'],
  49. 'docx' => ['application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
  50. 'dvi' => ['application/x-dvi'],
  51. 'dxr' => ['application/x-director'],
  52. 'eml' => ['message/rfc822'],
  53. 'eps' => ['application/postscript'],
  54. 'evy' => ['application/envoy'],
  55. 'exe' => ['application/x-msdos-program', 'application/octet-stream'],
  56. 'fla' => ['application/octet-stream'],
  57. 'flac' => ['application/x-flac'],
  58. 'flc' => ['video/flc'],
  59. 'fli' => ['video/fli'],
  60. 'flv' => ['video/x-flv'],
  61. 'gif' => ['image/gif'],
  62. 'gtar' => ['application/x-gtar'],
  63. 'gz' => ['application/x-gzip'],
  64. 'h' => ['text/x-chdr'],
  65. 'h++' => ['text/x-c++hdr'],
  66. 'hh' => ['text/x-c++hdr'],
  67. 'hpp' => ['text/x-c++hdr'],
  68. 'hqx' => ['application/mac-binhex40'],
  69. 'hs' => ['text/x-haskell'],
  70. 'htm' => ['text/html'],
  71. 'html' => ['text/html'],
  72. 'ico' => ['image/x-icon'],
  73. 'ics' => ['text/calendar'],
  74. 'iii' => ['application/x-iphone'],
  75. 'ins' => ['application/x-internet-signup'],
  76. 'iso' => ['application/x-iso9660-image'],
  77. 'isp' => ['application/x-internet-signup'],
  78. 'jar' => ['application/java-archive'],
  79. 'java' => ['application/x-java-applet'],
  80. 'jpe' => ['image/jpeg', 'image/pjpeg'],
  81. 'jpeg' => ['image/jpeg', 'image/pjpeg'],
  82. 'jpg' => ['image/jpeg', 'image/pjpeg'],
  83. 'js' => ['application/javascript'],
  84. 'json' => ['application/json'],
  85. 'latex' => ['application/x-latex'],
  86. 'lha' => ['application/octet-stream'],
  87. 'log' => ['text/plain', 'text/x-log'],
  88. 'lzh' => ['application/octet-stream'],
  89. 'm4a' => ['audio/mpeg'],
  90. 'm4p' => ['video/mp4v-es'],
  91. 'm4v' => ['video/mp4'],
  92. 'man' => ['application/x-troff-man'],
  93. 'mdb' => ['application/x-msaccess'],
  94. 'midi' => ['audio/midi'],
  95. 'mid' => ['audio/midi'],
  96. 'mif' => ['application/vnd.mif'],
  97. 'mka' => ['audio/x-matroska'],
  98. 'mkv' => ['video/x-matroska'],
  99. 'mov' => ['video/quicktime'],
  100. 'movie' => ['video/x-sgi-movie'],
  101. 'mp2' => ['audio/mpeg'],
  102. 'mp3' => ['audio/mpeg'],
  103. 'mp4' => ['application/mp4','audio/mp4','video/mp4'],
  104. 'mpa' => ['video/mpeg'],
  105. 'mpe' => ['video/mpeg'],
  106. 'mpeg' => ['video/mpeg'],
  107. 'mpg' => ['video/mpeg'],
  108. 'mpg4' => ['video/mp4'],
  109. 'mpga' => ['audio/mpeg'],
  110. 'mpp' => ['application/vnd.ms-project'],
  111. 'mpv' => ['video/x-matroska'],
  112. 'mpv2' => ['video/mpeg'],
  113. 'ms' => ['application/x-troff-ms'],
  114. 'msg' => ['application/msoutlook','application/x-msg'],
  115. 'msi' => ['application/x-msi'],
  116. 'nws' => ['message/rfc822'],
  117. 'oda' => ['application/oda'],
  118. 'odb' => ['application/vnd.oasis.opendocument.database'],
  119. 'odc' => ['application/vnd.oasis.opendocument.chart'],
  120. 'odf' => ['application/vnd.oasis.opendocument.forumla'],
  121. 'odg' => ['application/vnd.oasis.opendocument.graphics'],
  122. 'odi' => ['application/vnd.oasis.opendocument.image'],
  123. 'odm' => ['application/vnd.oasis.opendocument.text-master'],
  124. 'odp' => ['application/vnd.oasis.opendocument.presentation'],
  125. 'ods' => ['application/vnd.oasis.opendocument.spreadsheet'],
  126. 'odt' => ['application/vnd.oasis.opendocument.text'],
  127. 'oga' => ['audio/ogg'],
  128. 'ogg' => ['application/ogg'],
  129. 'ogv' => ['video/ogg'],
  130. 'otg' => ['application/vnd.oasis.opendocument.graphics-template'],
  131. 'oth' => ['application/vnd.oasis.opendocument.web'],
  132. 'otp' => ['application/vnd.oasis.opendocument.presentation-template'],
  133. 'ots' => ['application/vnd.oasis.opendocument.spreadsheet-template'],
  134. 'ott' => ['application/vnd.oasis.opendocument.template'],
  135. 'p' => ['text/x-pascal'],
  136. 'pas' => ['text/x-pascal'],
  137. 'patch' => ['text/x-diff'],
  138. 'pbm' => ['image/x-portable-bitmap'],
  139. 'pdf' => ['application/pdf', 'application/x-download'],
  140. 'php' => ['application/x-httpd-php'],
  141. 'php3' => ['application/x-httpd-php'],
  142. 'php4' => ['application/x-httpd-php'],
  143. 'php5' => ['application/x-httpd-php'],
  144. 'phps' => ['application/x-httpd-php-source'],
  145. 'phtml' => ['application/x-httpd-php'],
  146. 'pl' => ['text/x-perl'],
  147. 'pm' => ['text/x-perl'],
  148. 'png' => ['image/png', 'image/x-png'],
  149. 'po' => ['text/x-gettext-translation'],
  150. 'pot' => ['application/vnd.ms-powerpoint'],
  151. 'pps' => ['application/vnd.ms-powerpoint'],
  152. 'ppt' => ['application/powerpoint'],
  153. 'pptx' => ['application/vnd.openxmlformats-officedocument.presentationml.presentation'],
  154. 'ps' => ['application/postscript'],
  155. 'psd' => ['application/x-photoshop', 'image/x-photoshop'],
  156. 'pub' => ['application/x-mspublisher'],
  157. 'py' => ['text/x-python'],
  158. 'qt' => ['video/quicktime'],
  159. 'ra' => ['audio/x-realaudio'],
  160. 'ram' => ['audio/x-realaudio', 'audio/x-pn-realaudio'],
  161. 'rar' => ['application/rar'],
  162. 'rgb' => ['image/x-rgb'],
  163. 'rm' => ['audio/x-pn-realaudio'],
  164. 'rpm' => ['audio/x-pn-realaudio-plugin', 'application/x-redhat-package-manager'],
  165. 'rss' => ['application/rss+xml'],
  166. 'rtf' => ['text/rtf'],
  167. 'rtx' => ['text/richtext'],
  168. 'rv' => ['video/vnd.rn-realvideo'],
  169. 'sea' => ['application/octet-stream'],
  170. 'sh' => ['text/x-sh'],
  171. 'shtml' => ['text/html'],
  172. 'sit' => ['application/x-stuffit'],
  173. 'smi' => ['application/smil'],
  174. 'smil' => ['application/smil'],
  175. 'so' => ['application/octet-stream'],
  176. 'src' => ['application/x-wais-source'],
  177. 'svg' => ['image/svg+xml'],
  178. 'swf' => ['application/x-shockwave-flash'],
  179. 't' => ['application/x-troff'],
  180. 'tar' => ['application/x-tar'],
  181. 'tcl' => ['text/x-tcl'],
  182. 'tex' => ['application/x-tex'],
  183. 'text' => ['text/plain'],
  184. 'texti' => ['application/x-texinfo'],
  185. 'textinfo' => ['application/x-texinfo'],
  186. 'tgz' => ['application/x-tar'],
  187. 'tif' => ['image/tiff'],
  188. 'tiff' => ['image/tiff'],
  189. 'torrent' => ['application/x-bittorrent'],
  190. 'tr' => ['application/x-troff'],
  191. 'tsv' => ['text/tab-separated-values'],
  192. 'txt' => ['text/plain'],
  193. 'wav' => ['audio/x-wav'],
  194. 'wax' => ['audio/x-ms-wax'],
  195. 'wbxml' => ['application/wbxml'],
  196. 'webapp' => ['application/x-web-app-manifest+json'],
  197. 'webm' => ['video/webm'],
  198. 'wm' => ['video/x-ms-wm'],
  199. 'wma' => ['audio/x-ms-wma'],
  200. 'wmd' => ['application/x-ms-wmd'],
  201. 'wmlc' => ['application/wmlc'],
  202. 'wmv' => ['video/x-ms-wmv', 'application/octet-stream'],
  203. 'wmx' => ['video/x-ms-wmx'],
  204. 'wmz' => ['application/x-ms-wmz'],
  205. 'word' => ['application/msword', 'application/octet-stream'],
  206. 'wp5' => ['application/wordperfect5.1'],
  207. 'wpd' => ['application/vnd.wordperfect'],
  208. 'wvx' => ['video/x-ms-wvx'],
  209. 'xbm' => ['image/x-xbitmap'],
  210. 'xcf' => ['image/xcf'],
  211. 'xhtml' => ['application/xhtml+xml'],
  212. 'xht' => ['application/xhtml+xml'],
  213. 'xl' => ['application/excel', 'application/vnd.ms-excel'],
  214. 'xla' => ['application/excel', 'application/vnd.ms-excel'],
  215. 'xlc' => ['application/excel', 'application/vnd.ms-excel'],
  216. 'xlm' => ['application/excel', 'application/vnd.ms-excel'],
  217. 'xls' => ['application/excel', 'application/vnd.ms-excel'],
  218. 'xlsx' => ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
  219. 'xlt' => ['application/excel', 'application/vnd.ms-excel'],
  220. 'xml' => ['text/xml', 'application/xml'],
  221. 'xof' => ['x-world/x-vrml'],
  222. 'xpm' => ['image/x-xpixmap'],
  223. 'xsl' => ['text/xml'],
  224. 'xvid' => ['video/x-xvid'],
  225. 'xwd' => ['image/x-xwindowdump'],
  226. 'z' => ['application/x-compress'],
  227. 'zip' => ['application/x-zip', 'application/zip', 'application/x-zip-compressed']
  228. ];