搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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 + "\"");