SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/mimes.php

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