IE保存docx xlsx变成zip的问题

伟大的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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值