Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Why are some files when opened -1 bytes?

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.