什么是excel文件的正确内容类型? [英] What is correct content-type for excel files?
本文介绍了什么是excel文件的正确内容类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望Excel中的excel文件在Excel中打开,点击后不会被保存在桌面上,或者在浏览器中嵌入浏览器等等。显然,这一切都取决于每个用户的配置方式,但最好的Content-Type和其他设置大部分时间才能实现?
I want excel files on a website to open in Excel when clicked, not get saved on desktop, or get opened embedded in a browser etc. Now obviously it all depends on how everything is configured for each user, but what's the best Content-Type and other settings to achieve just that most of the time?
推荐答案
对于BIFF .xls文件
For BIFF .xls files
application/vnd.ms-excel
对于Excel2007及以上.xlsx文件
For Excel2007 and above .xlsx files
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
这篇关于什么是excel文件的正确内容类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文