什么是docx,pptx等的正确MIME类型?
【摘要】
对于较旧的* .doc文档,这是足够的:
header("Content-Type: application/msword");
我应该为新的docx文件使用什么MIME类型?也为pptx和xlsx文档?
最佳答案
以下是HTTP Content Streaming的正确Microsoft Office MIME类型:
Ext...
对于较旧的* .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.openxmlformats-officedocument.wordprocessingml.template
-
.docm application/vnd.ms-word.document.macroEnabled.12
-
.dotm application/vnd.ms-word.template.macroEnabled.12
-
-
.xls application/vnd.ms-excel
-
.xlt application/vnd.ms-excel
-
.xla application/vnd.ms-excel
-
-
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
-
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
-
.xlsm application/vnd.ms-excel.sheet.macroEnabled.12
-
.xltm application/vnd.ms-excel.template.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.openxmlformats-officedocument.presentationml.template
-
.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/vnd.ms-powerpoint.template.macroEnabled.12
-
.ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12
-
-
.mdb application/vnd.ms-access
文章来源: blog.csdn.net,作者:lxw1844912514,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/lxw1844912514/article/details/102629405
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)