mimes.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. return array(
  3. 'hqx' => 'application/mac-binhex40',
  4. 'cpt' => 'application/mac-compactpro',
  5. 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream'),
  6. 'bin' => 'application/macbinary',
  7. 'dms' => 'application/octet-stream',
  8. 'lha' => 'application/octet-stream',
  9. 'lzh' => 'application/octet-stream',
  10. 'exe' => array('application/octet-stream', 'application/x-msdownload'),
  11. 'class' => 'application/octet-stream',
  12. 'psd' => 'application/x-photoshop',
  13. 'so' => 'application/octet-stream',
  14. 'sea' => 'application/octet-stream',
  15. 'dll' => 'application/octet-stream',
  16. 'oda' => 'application/oda',
  17. 'pdf' => array('application/pdf', 'application/x-download'),
  18. 'ai' => 'application/postscript',
  19. 'eps' => 'application/postscript',
  20. 'ps' => 'application/postscript',
  21. 'smi' => 'application/smil',
  22. 'smil' => 'application/smil',
  23. 'mif' => 'application/vnd.mif',
  24. 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
  25. 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
  26. 'wbxml' => 'application/wbxml',
  27. 'wmlc' => 'application/wmlc',
  28. 'dcr' => 'application/x-director',
  29. 'dir' => 'application/x-director',
  30. 'dxr' => 'application/x-director',
  31. 'dvi' => 'application/x-dvi',
  32. 'gtar' => 'application/x-gtar',
  33. 'gz' => 'application/x-gzip',
  34. 'php' => array('application/x-httpd-php', 'text/x-php'),
  35. 'php4' => 'application/x-httpd-php',
  36. 'php3' => 'application/x-httpd-php',
  37. 'phtml' => 'application/x-httpd-php',
  38. 'phps' => 'application/x-httpd-php-source',
  39. 'js' => 'application/x-javascript',
  40. 'swf' => 'application/x-shockwave-flash',
  41. 'sit' => 'application/x-stuffit',
  42. 'tar' => 'application/x-tar',
  43. 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
  44. 'xhtml' => 'application/xhtml+xml',
  45. 'xht' => 'application/xhtml+xml',
  46. 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
  47. 'mid' => 'audio/midi',
  48. 'midi' => 'audio/midi',
  49. 'mpga' => 'audio/mpeg',
  50. 'mp2' => 'audio/mpeg',
  51. 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
  52. 'aif' => 'audio/x-aiff',
  53. 'aiff' => 'audio/x-aiff',
  54. 'aifc' => 'audio/x-aiff',
  55. 'ram' => 'audio/x-pn-realaudio',
  56. 'rm' => 'audio/x-pn-realaudio',
  57. 'rpm' => 'audio/x-pn-realaudio-plugin',
  58. 'ra' => 'audio/x-realaudio',
  59. 'rv' => 'video/vnd.rn-realvideo',
  60. 'wav' => 'audio/x-wav',
  61. 'bmp' => 'image/bmp',
  62. 'gif' => 'image/gif',
  63. 'jpeg' => array('image/jpeg', 'image/pjpeg'),
  64. 'jpg' => array('image/jpeg', 'image/pjpeg'),
  65. 'jpe' => array('image/jpeg', 'image/pjpeg'),
  66. 'png' => 'image/png',
  67. 'tiff' => 'image/tiff',
  68. 'tif' => 'image/tiff',
  69. 'css' => 'text/css',
  70. 'html' => 'text/html',
  71. 'htm' => 'text/html',
  72. 'shtml' => 'text/html',
  73. 'txt' => 'text/plain',
  74. 'text' => 'text/plain',
  75. 'log' => array('text/plain', 'text/x-log'),
  76. 'rtx' => 'text/richtext',
  77. 'rtf' => 'text/rtf',
  78. 'xml' => 'text/xml',
  79. 'xsl' => 'text/xml',
  80. 'mpeg' => 'video/mpeg',
  81. 'mpg' => 'video/mpeg',
  82. 'mpe' => 'video/mpeg',
  83. 'qt' => 'video/quicktime',
  84. 'mov' => 'video/quicktime',
  85. 'avi' => 'video/x-msvideo',
  86. 'movie' => 'video/x-sgi-movie',
  87. 'doc' => 'application/msword',
  88. 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  89. 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  90. 'word' => array('application/msword', 'application/octet-stream'),
  91. 'xl' => 'application/excel',
  92. 'eml' => 'message/rfc822',
  93. 'json' => array('application/json', 'text/json'),
  94. );