Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox 3 cannot download files with white space in the filename

  • 5 回覆
  • 42 有這個問題
  • 26 次檢視
  • 最近回覆由 Santhosh.skp

more options

When opening attachments in e-mail Firefox is unable to handle files with white space in the name. This is not the same as the white space file name truncation problem documented on this site (where file names with white space are truncated on saving.) The issue is that the browser will prompt to allow the file to be saved, but it will not prompt to open the file as an option. If I rename the file to remove white space then I do receive the "Open with..." dialog box. I verified that Firefox 2 did not have this problem and I can open attachments with white space in the file names just fine using that version of the browser (2.0.0.20).

This happened

Every time Firefox opened

== Upgraded to version 3

When opening attachments in e-mail Firefox is unable to handle files with white space in the name. This is not the same as the white space file name truncation problem documented on this site (where file names with white space are truncated on saving.) The issue is that the browser will prompt to allow the file to be saved, but it will not prompt to open the file as an option. If I rename the file to remove white space then I do receive the "Open with..." dialog box. I verified that Firefox 2 did not have this problem and I can open attachments with white space in the file names just fine using that version of the browser (2.0.0.20). == This happened == Every time Firefox opened == Upgraded to version 3

所有回覆 (5)

more options

I have never had that problem with saving or opening files like that with Firefox 3+ version on Windows 2000, and I don't recall that happening on Firefox 3.6 versions on Ubuntu 10.04. I can't say for sure on Ubuntu because I haven't been using it long (my Asus EeePC netbook came with Xandros and Firefox 2.0, which I used until March), and I don't download all that many files on the netbook.

more options

I just tried with Firefox 3.6.6 on MacOS X and it doesn't work there either. I get prompted to save the file, but not to open it. If I rename the file to eliminate spaces then I get the "Open With" dialog box.

more options

I have the same problem with windows7 os and mozilla

more options

I have the same problem with windows7 and firefox


Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

more options

When a user clicks on an attachment with spaces, the filename is truncated to the first whitespace. While IE, Chrome & Safari handle this, Firefox refuses to accept mime headers with unquoted filename parameters. According to Firefox's bugzilla/knowledgebase, Firefox's behavior is the correct behavior and it's a problem with most webservers or web applications. This problem can be easily corrected by surrounding the filename parameter with double quotes.

Eg.

Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");