mimes.php 9.7 KB

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