mimetypes.list.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. 'kra'=>'application/x-krita',
  57. 'mp3'=>'audio/mpeg',
  58. 'doc'=>'application/msword',
  59. 'docx'=>'application/msword',
  60. 'xls'=>'application/msexcel',
  61. 'xlsx'=>'application/msexcel',
  62. 'php'=>'application/x-php',
  63. 'exe'=>'application/x-ms-dos-executable',
  64. 'pl'=>'application/x-pearl',
  65. 'py'=>'application/x-python',
  66. 'blend'=>'application/x-blender',
  67. 'xcf'=>'application/x-gimp',
  68. 'psd'=>'application/x-photoshop',
  69. 'xml'=>'application/xml',
  70. 'avi'=>'video/x-msvideo',
  71. 'dv'=>'video/dv',
  72. 'm2t'=>'video/mp2t',
  73. 'mp4'=>'video/mp4',
  74. 'm4v'=>'video/mp4',
  75. 'mpg'=>'video/mpeg',
  76. 'mpeg'=>'video/mpeg',
  77. 'mov'=>'video/quicktime',
  78. 'webm'=>'video/webm',
  79. 'wmv'=>'video/x-ms-asf'
  80. );