什么是docx,pptx等的正确MIME类型?对于较旧的* .doc⽂档,这是⾜够的:
header("Content-Type: application/msword");
我应该为新的docx⽂件使⽤什么MIME类型?也为pptx和xlsx⽂档?
最佳答案
以下是HTTP Content Streaming的正确Microsoft Office MIME类型:
Extension MIME Type
.doc      application/msword
.dot      application/msword
.docx    application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx    application/vnd.plate
.docm    application/vnd.ms-word.document.macroEnabled.12
.
dotm    application/plate.macroEnabled.12
.xls      application/vnd.ms-excel
.xlt      application/vnd.ms-excel
presentation什么意思
.xla      application/vnd.ms-excel
.xlsx    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx    application/vnd.plate
.xlsm    application/vnd.ms-excel.sheet.macroEnabled.12
.xltm    application/plate.macroEnabled.12
.xlam    application/vnd.ms-excel.addin.macroEnabled.12
.xlsb    application/vnd.ms-excel.sheet.binary.macroEnabled.12
.ppt      application/vnd.ms-powerpoint
.
pot      application/vnd.ms-powerpoint
.pps      application/vnd.ms-powerpoint
.ppa      application/vnd.ms-powerpoint
.pptx    application/vnd.openxmlformats-officedocument.presentationml.presentation
.potx    application/vnd.plate
.ppsx    application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppam    application/vnd.ms-powerpoint.addin.macroEnabled.12
.pptm    application/vnd.ms-powerpoint.presentation.macroEnabled.12
.potm    application/plate.macroEnabled.12
.ppsm    application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.mdb      application/vnd.ms-access

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。