Apache的配置Mime类型:XLSX文件正在跨preTED作为下载的zip文件,为什么? [英] Apache Config Mime Types: xlsx files are being interpreted as zip files on download, why?

查看:322
本文介绍了Apache的配置Mime类型:XLSX文件正在跨preTED作为下载的zip文件,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:由于某些原因,当用户试图打开一个XSLX(Excel 2007中)使用MSIE,文件下载对话框间$ P $点为一个拉链从我们内网文件文件。

Background: For some reason, whenever a user tries to open an xslx (excel 2007) file from our intranet using MSIE, the file download dialog interprets it as a "zip" file.

不可否认,XSLX文件真正的的zip文件,但我们不希望出现这种行为。就在Excel中打开,请。

Admittedly, xslx files really are zip files, but we don't want that behavior. Just open in Excel, please.

问:

火狐,OTOH,通常打开的文件。有没有可能是故障是我的Apache CONFIGS?或者这是一个客户端浏览器的唯一问题?

Firefox, OTOH, opens the files normally. Is it possible that the fault is my apache configs? or is this a client-browser-only issue?

推荐答案

原因是IE的奇怪的MIME嗅探行为:的 http://msdn.microsoft.com/en-us/library/ms775147.aspx 。基本上,它试图确定一个文件的文件类型通过查看其内容,不知何故,如Linux的文件工具。

The reason is IE's strange MIME sniffing behaviour: http://msdn.microsoft.com/en-us/library/ms775147.aspx. It basically tries to determine to the file type of a file by looking into its contents, somehow like Linux's file tool.

这篇关于Apache的配置Mime类型:XLSX文件正在跨preTED作为下载的zip文件,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆