搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Downloading a .xlsx file declared as excel MIME type, firefox appends .xls suffix and the file cannot be opened with OpenOffice.

  • 2 回覆
  • 65 有這個問題
  • 13 次檢視
  • 最近回覆由 Philippe2705

more options

I have a program generated Planning.xlsx file on my web server. The Mime definition is as follow: .xlsx;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet When the file is downloaded with IE or Safari, the associated program (Scalc.exe) opens the .xlsx file without any problem. With Firefox however, the download program appends a .xls suffix to the file name (Planning.xlsx.xls) and Scalc is unable to read the file whose content does not match the suffix. Changing the default program to Excel works fine but I can't imagine this can be a definitive solution.

I have a program generated Planning.xlsx file on my web server. The Mime definition is as follow: .xlsx;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet When the file is downloaded with IE or Safari, the associated program (Scalc.exe) opens the .xlsx file without any problem. With Firefox however, the download program appends a .xls suffix to the file name (Planning.xlsx.xls) and Scalc is unable to read the file whose content does not match the suffix. Changing the default program to Excel works fine but I can't imagine this can be a definitive solution.

由 Philippe2705 於 修改

所有回覆 (2)

more options
more options

It works! Thanks for your help.

Philippe.