Apache Config Mime类型:xlsx文件在下载时被解释为zip文件,为什么? [英] Apache Config Mime Types: xlsx files are being interpreted as zip files on download, why?
问题描述
背景:由于某种原因,每当用户尝试使用MSIE从内部网打开xslx(excel 2007)文件时,文件下载对话框将其解释为zip文件。
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.
问题:
Firefox,OTOH,正常打开文件。这可能是我的apache配置错误吗?或者这是客户端浏览器的问题吗?
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 Config Mime类型:xlsx文件在下载时被解释为zip文件,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!