当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Why are some files when opened -1 bytes?

  • 2 件の返信
  • 10 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: Scott M. Sanders

more options

This is the byte count reported in the "opening" dialog.

In particular, I see it with a PHP script that dynamically generates files, and yes, these files contain data.

I see this a lot now in Firefox 8 but do not recall such in earlier versions.

This is the byte count reported in the "opening" dialog. In particular, I see it with a PHP script that dynamically generates files, and yes, these files contain data. I see this a lot now in Firefox 8 but do not recall such in earlier versions.

この投稿は Scott M. Sanders により に変更されました

すべての返信 (2)

more options

It happens when server response with no Content-Length: field. "Transfer-Encoding: chunked" provides option to download a attached file without known file size.

POST /tmp/Control/form HTTP/1.1
Host: 192.168.0.1

HTTP/1.1 200 OK
Date: Mon, 14 Nov 2011 10:21:21 GMT
Set-Cookie: fileDownloadToken=done; Path=/; Secure
Content-disposition: attachment; filename=ClientFile.exe
:
Content-Type: application/binary
Keep-Alive: timeout=4, max=100
Transfer-Encoding: chunked
Connection: Keep-Alive

It is known problem. See https://bugzilla.mozilla.org/show_bug.cgi?id=683258

この投稿は cor-el により に変更されました

more options

Thank you for the info, especially the bug report. It seems to be more or less fixed in Firefox 9 (beta). It simply doesn't show any size now if unknown.