伟大的Microsoft迄今为止还没有修复这个bug,自作多情的把自己发明的docx,xlsx等格式保存成zip文件,虽然那些文件的实质就是zip,但是绝不能容忍IE下载文件时把它们当做zip,总不能告诉用户让他们自己把下载好的文件改回docx或xlsx后缀吧,麻烦。修复很简单,只需要在Apache的httpd.conf里添加额外的MIME types信息然后重启即可。
AddType application/vnd.ms-word.document.macroEnabled.12 .docm
AddType application/vnd.openxmlformats .docx .pptx .xlsx
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx
AddType application/vnd.ms-word.template.macroEnabled.12 .dotm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 .potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template .potx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppam
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 .pptm
AddType application/vnd.ms-excel.addin.macroEnabled.12 .xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsb
AddType application/vnd.ms-excel.sheet.macroEnabled.12 .xlsm
AddType application/vnd.ms-excel .xlt .xla
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx
AddType application/vnd.ms-excel.template.macroEnabled.12 .xltm
AddType application/vnd.ms-xpsdocument .xps
AddType application/application/vnd.ms-powerpoint .ppt .pot .pps .ppa
AddType application/msword .doc .dot
分享到:
相关推荐
转载于中国大学mooc《Java核心技术》陈老师的文件,主要示例了docx,表格,pdf文件的操作方式。
使用spring boot打造文件文档在线预览项目解决方案,支持doc、docx、ppt、pptx、xls、xlsx、zip、rar、mp4、mp3以及众多类文本如txt、html、xml、java、properties、sql、js、md、json、conf、ini、vue、php、py、...
数擎XLSX/DOCX/PPTX文件恢复软件可以恢复Office2007、Office2010、Office2013、Office2016、Office2017、Office2019保存的扩展名是xlsx和docx和pptx的办公文件,具有碎片扫描恢复重组的功能。特别适合于U盘等FAT32...
原来传了word转pdf转swf的方法,后来发现不能转换docx xlsx pptx,现在将可以转换docx xlsx pptx的jar包和java例子上传,希望对大家有用
如果你的电脑配置不高,安装不了OFFICE2007的格式,又想打开OFFICE2007对应的DOCX或者XLSX的格式,请选择使用这个补丁包,打开速度很快,不影响你们的正常使用,不需要任何设置,只需要安装一下就可以正常打开OFFICE...
JAVA用poi解析doc、docx、slx、xlsx,代码我整合在一个类中,生成的是一个html,自己仔细阅读,大部分功能都能实现了,附带了POI3.8给大家
TBS腾讯浏览器服务x5内核打开本地doc(doc docx xlsx pdf ppt)文档(官网最新43903版本SDK)
java_io流讲解.docx.zip java_io流讲解.docx.zip
数擎XLSX/DOCX/PPTX文件恢复软件可以恢复Office2007、Office2010、Office2013保存的扩展名是xlsx和docx和pptx的办公文件,具有碎片扫描恢复重组的功能。特别适合于U盘等FAT32分区里面因为经常编辑修改而形成了碎片的...
新建 DOCX 文档.zip
如何卸载IE.docx
xlsx是什么文件,xlsx文件怎么打开.docx
android 操作office文档 doc docx xls xlsx ppt pptx pdf
.pdf/.doc/.docx/.xls/.xlsx/.ppt/.pptx 文件网页预览 ASP.NET MVC 项目
如何把xlsx文件转换成xls.docx
Python-xlsx 主要用于读写Microsoft Office 2007及更高版本.xlsx文件的库。Python-xlsx 也配套库了对ppt、doc文件读写的python-PPTX和python-DOCX。 标签:Python
office多种类型文件(docx dotx xlsx xltx pptx ppsx potx 空文件打包为zip包)
读取txt、doc、docx、pptx、xls、xlsx,以及文件下载 需要下载jxl和tm
为什么IE下载的 Zip 文件没有保存到计算机上.docx