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 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. * list of mimetypes by extension
  24. */
  25. return array(
  26. 'css'=>'text/css',
  27. 'flac'=>'audio/flac',
  28. 'gif'=>'image/gif',
  29. 'gzip'=>'application/x-gzip',
  30. 'gz'=>'application/x-gzip',
  31. 'html'=>'text/html',
  32. 'htm'=>'text/html',
  33. 'ics'=>'text/calendar',
  34. 'ical'=>'text/calendar',
  35. 'jpeg'=>'image/jpeg',
  36. 'jpg'=>'image/jpeg',
  37. 'js'=>'application/javascript',
  38. 'oga'=>'audio/ogg',
  39. 'ogg'=>'audio/ogg',
  40. 'ogv'=>'video/ogg',
  41. 'pdf'=>'application/pdf',
  42. 'png'=>'image/png',
  43. 'svg'=>'image/svg+xml',
  44. 'tar'=>'application/x-tar',
  45. 'tgz'=>'application/x-compressed',
  46. 'tar.gz'=>'application/x-compressed',
  47. 'tif'=>'image/tiff',
  48. 'tiff'=>'image/tiff',
  49. 'txt'=>'text/plain',
  50. 'zip'=>'application/zip',
  51. 'wav'=>'audio/wav',
  52. 'odt'=>'application/vnd.oasis.opendocument.text',
  53. 'ods'=>'application/vnd.oasis.opendocument.spreadsheet',
  54. 'odg'=>'application/vnd.oasis.opendocument.graphics',
  55. 'odp'=>'application/vnd.oasis.opendocument.presentation',
  56. 'pages'=>'application/x-iwork-pages-sffpages',
  57. 'numbers'=>'application/x-iwork-numbers-sffnumbers',
  58. 'keynote'=>'application/x-iwork-keynote-sffkey',
  59. 'kra'=>'application/x-krita',
  60. 'mp3'=>'audio/mpeg',
  61. 'doc'=>'application/msword',
  62. 'docx'=>'application/msword',
  63. 'xls'=>'application/msexcel',
  64. 'xlsx'=>'application/msexcel',
  65. 'php'=>'application/x-php',
  66. 'exe'=>'application/x-ms-dos-executable',
  67. 'pl'=>'application/x-pearl',
  68. 'py'=>'application/x-python',
  69. 'blend'=>'application/x-blender',
  70. 'xcf'=>'application/x-gimp',
  71. 'psd'=>'application/x-photoshop',
  72. 'xml'=>'application/xml',
  73. 'avi'=>'video/x-msvideo',
  74. 'dv'=>'video/dv',
  75. 'm2t'=>'video/mp2t',
  76. 'mp4'=>'video/mp4',
  77. 'm4v'=>'video/mp4',
  78. 'mpg'=>'video/mpeg',
  79. 'mpeg'=>'video/mpeg',
  80. 'mov'=>'video/quicktime',
  81. 'webm'=>'video/webm',
  82. 'wmv'=>'video/x-ms-asf',
  83. 'py'=>'text/x-script.phyton',
  84. 'vcf' => 'text/vcard',
  85. 'vcard' => 'text/vcard',
  86. 'doc'=>'application/msword',
  87. 'docx'=>'application/msword',
  88. 'xls'=>'application/msexcel',
  89. 'xlsx'=>'application/msexcel',
  90. 'ppt'=>'application/mspowerpoint',
  91. 'pptx'=>'application/mspowerpoint',
  92. 'sgf' => 'application/sgf',
  93. 'cdr' => 'application/coreldraw',
  94. 'impress' => 'text/impress',
  95. 'ai' => 'application/illustrator',
  96. 'epub' => 'application/epub+zip',
  97. 'mobi' => 'application/x-mobipocket-ebook',
  98. 'exe' => 'application',
  99. 'msi' => 'application'
  100. );