You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mimetypes.list.php 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. /**
  3. * ownCloud
  4. *
  5. * @author Robin Appelman
  6. * @copyright 2011 Robin Appelman icewind1991@gmail.com
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  10. * License as published by the Free Software Foundation; either
  11. * version 3 of the License, or any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public
  19. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Array mapping file extensions to mimetypes (in alphabetical order).
  24. *
  25. * The first index in the mime type array is the assumed correct mimetype
  26. * and the second is either a secure alternative or null if the correct
  27. * is considered secure.
  28. */
  29. return array(
  30. '7z' => array('application/x-7z-compressed', null),
  31. 'accdb' => array('application/msaccess', null),
  32. 'ai' => array('application/illustrator', null),
  33. 'avi' => array('video/x-msvideo', null),
  34. 'bash' => array('text/x-shellscript', null),
  35. 'blend' => array('application/x-blender', null),
  36. 'bin' => array('application/x-bin', null),
  37. 'bmp' => array('image/bmp', null),
  38. 'cb7' => array('application/x-cbr', null),
  39. 'cba' => array('application/x-cbr', null),
  40. 'cbr' => array('application/x-cbr', null),
  41. 'cbt' => array('application/x-cbr', null),
  42. 'cbtc' => array('application/x-cbr', null),
  43. 'cbz' => array('application/x-cbr', null),
  44. 'cc' => array('text/x-c', null),
  45. 'cdr' => array('application/coreldraw', null),
  46. 'cpp' => array('text/x-c++src', null),
  47. 'css' => array('text/css', null),
  48. 'csv' => array('text/csv', null),
  49. 'cvbdl' => array('application/x-cbr', null),
  50. 'c' => array('text/x-c', null),
  51. 'c++' => array('text/x-c++src', null),
  52. 'deb' => array('application/x-deb', null),
  53. 'doc' => array('application/msword', null),
  54. 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', null),
  55. 'dot' => array('application/msword', null),
  56. 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.template', null),
  57. 'dv' => array('video/dv', null),
  58. 'eot' => array('application/vnd.ms-fontobject', null),
  59. 'epub' => array('application/epub+zip', null),
  60. 'exe' => array('application/x-ms-dos-executable', null),
  61. 'flac' => array('audio/flac', null),
  62. 'flv' => array('video/x-flv', null),
  63. 'gif' => array('image/gif', null),
  64. 'gz' => array('application/x-gzip', null),
  65. 'gzip' => array('application/x-gzip', null),
  66. 'html' => array('text/html', 'text/plain'),
  67. 'htm' => array('text/html', 'text/plain'),
  68. 'ical' => array('text/calendar', null),
  69. 'ics' => array('text/calendar', null),
  70. 'impress' => array('text/impress', null),
  71. 'jpeg' => array('image/jpeg', null),
  72. 'jpg' => array('image/jpeg', null),
  73. 'js' => array('application/javascript', 'text/plain'),
  74. 'json' => array('application/json', 'text/plain'),
  75. 'keynote' => array('application/x-iwork-keynote-sffkey', null),
  76. 'kra' => array('application/x-krita', null),
  77. 'm2t' => array('video/mp2t', null),
  78. 'm4v' => array('video/mp4', null),
  79. 'markdown' => array('text/markdown', null),
  80. 'mdown' => array('text/markdown', null),
  81. 'md' => array('text/markdown', null),
  82. 'mdb' => array('application/msaccess', null),
  83. 'mdwn' => array('text/markdown', null),
  84. 'mkv' => array('video/x-matroska', null),
  85. 'mobi' => array('application/x-mobipocket-ebook', null),
  86. 'mov' => array('video/quicktime', null),
  87. 'mp3' => array('audio/mpeg', null),
  88. 'mp4' => array('video/mp4', null),
  89. 'mpeg' => array('video/mpeg', null),
  90. 'mpg' => array('video/mpeg', null),
  91. 'msi' => array('application/x-msi', null),
  92. 'numbers' => array('application/x-iwork-numbers-sffnumbers', null),
  93. 'odg' => array('application/vnd.oasis.opendocument.graphics', null),
  94. 'odp' => array('application/vnd.oasis.opendocument.presentation', null),
  95. 'ods' => array('application/vnd.oasis.opendocument.spreadsheet', null),
  96. 'odt' => array('application/vnd.oasis.opendocument.text', null),
  97. 'oga' => array('audio/ogg', null),
  98. 'ogg' => array('audio/ogg', null),
  99. 'ogv' => array('video/ogg', null),
  100. 'otf' => array('font/opentype', null),
  101. 'pages' => array('application/x-iwork-pages-sffpages', null),
  102. 'pdf' => array('application/pdf', null),
  103. 'php' => array('application/x-php', null),
  104. 'pl' => array('application/x-perl', null),
  105. 'png' => array('image/png', null),
  106. 'ppt' => array('application/mspowerpoint', null),
  107. 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', null),
  108. 'psd' => array('application/x-photoshop', null),
  109. 'py' => array('text/x-python', null),
  110. 'rar' => array('application/x-rar-compressed', null),
  111. 'reveal' => array('text/reveal', null),
  112. 'sgf' => array('application/sgf', null),
  113. 'sh-lib' => array('text/x-shellscript', null),
  114. 'sh' => array('text/x-shellscript', null),
  115. 'svg' => array('image/svg+xml', 'text/plain'),
  116. 'swf' => array('application/x-shockwave-flash', 'application/octet-stream'),
  117. 'tar' => array('application/x-tar', null),
  118. 'tar.gz' => array('application/x-compressed', null),
  119. 'tex' => array('application/x-tex', null),
  120. 'tgz' => array('application/x-compressed', null),
  121. 'tiff' => array('image/tiff', null),
  122. 'tif' => array('image/tiff', null),
  123. 'ttf' => array('application/x-font-ttf', null),
  124. 'txt' => array('text/plain', null),
  125. 'vcard' => array('text/vcard', null),
  126. 'vcf' => array('text/vcard', null),
  127. 'wav' => array('audio/wav', null),
  128. 'webm' => array('video/webm', null),
  129. 'woff' => array('application/font-woff', null),
  130. 'wmv' => array('video/x-ms-asf', null),
  131. 'xcf' => array('application/x-gimp', null),
  132. 'xls' => array('application/msexcel', null),
  133. 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', null),
  134. 'xml' => array('application/xml', 'text/plain'),
  135. 'zip' => array('application/zip', null),
  136. );