mimetypes.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Local mapping file to specify mime-types based on common file-name extensions
  4. *
  5. * Please note that this mapping takes precedence over the content-based mime-type detection
  6. * and should only contain mappings which cannot be detected properly from the file contents.
  7. */
  8. return [
  9. "xls" => "application/vnd.ms-excel",
  10. "xlm" => "application/vnd.ms-excel",
  11. "xla" => "application/vnd.ms-excel",
  12. "xlc" => "application/vnd.ms-excel",
  13. "xlt" => "application/vnd.ms-excel",
  14. "xlw" => "application/vnd.ms-excel",
  15. "pdf" => "application/pdf",
  16. "ppt" => "application/vnd.ms-powerpoint",
  17. "pps" => "application/vnd.ms-powerpoint",
  18. "pot" => "application/vnd.ms-powerpoint",
  19. "doc" => "application/msword",
  20. "dot" => "application/msword",
  21. "odc" => "application/vnd.oasis.opendocument.chart",
  22. "otc" => "application/vnd.oasis.opendocument.chart-template",
  23. "odf" => "application/vnd.oasis.opendocument.formula",
  24. "otf" => "application/vnd.oasis.opendocument.formula-template",
  25. "odg" => "application/vnd.oasis.opendocument.graphics",
  26. "otg" => "application/vnd.oasis.opendocument.graphics-template",
  27. "odi" => "application/vnd.oasis.opendocument.image",
  28. "oti" => "application/vnd.oasis.opendocument.image-template",
  29. "odp" => "application/vnd.oasis.opendocument.presentation",
  30. "otp" => "application/vnd.oasis.opendocument.presentation-template",
  31. "ods" => "application/vnd.oasis.opendocument.spreadsheet",
  32. "ots" => "application/vnd.oasis.opendocument.spreadsheet-template",
  33. "odt" => "application/vnd.oasis.opendocument.text",
  34. "otm" => "application/vnd.oasis.opendocument.text-master",
  35. "ott" => "application/vnd.oasis.opendocument.text-template",
  36. "oth" => "application/vnd.oasis.opendocument.text-web",
  37. "docm" => "application/vnd.ms-word.document.macroEnabled.12",
  38. "docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  39. "dotm" => "application/vnd.ms-word.template.macroEnabled.12",
  40. "dotx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
  41. "ppsm" => "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
  42. "ppsx" => "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
  43. "pptm" => "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
  44. "pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
  45. "xlsb" => "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
  46. "xlsm" => "application/vnd.ms-excel.sheet.macroEnabled.12",
  47. "xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
  48. "xps" => "application/vnd.ms-xpsdocument",
  49. "rar" => "application/x-rar-compressed",
  50. "7z" => "application/x-7z-compressed",
  51. "s7z" => "application/x-7z-compressed",
  52. "vcf" => "text/vcard",
  53. "ics" => "text/calendar",
  54. ];