Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Mozilla 도움말 검색

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

자세히 살펴보기

v8 blocks attachment downloads from SMF forums

  • 5 답장
  • 17 이 문제를 만남
  • 1 보기
  • 최종 답변자: rikbean

more options

Since updating to v8, attachments in the SMF forums I run are not being properly recognised, and (although the file type may be recognised fir, say, a JPEG file) it is offered for saving as index.php. A midi or MP3 attachment will be offered for saving as index.php. Renaming the saved version produces the correct file type. A check in other browsers, and on a machine still running v7 reveals that the problem is limited to Firefox8, and this is confirmed by one of my fellow admins.

Checked file associations are correct in Firefox. The problem seems to be in parsing the file name.

Any ideas gratefully received.

Rik

PS: you'll find most MP3/MIDI attachments in the Fun & Games boards, most JPG files will be in Hobbies and pasttimes, or Help

Since updating to v8, attachments in the SMF forums I run are not being properly recognised, and (although the file type may be recognised fir, say, a JPEG file) it is offered for saving as index.php. A midi or MP3 attachment will be offered for saving as index.php. Renaming the saved version produces the correct file type. A check in other browsers, and on a machine still running v7 reveals that the problem is limited to Firefox8, and this is confirmed by one of my fellow admins. Checked file associations are correct in Firefox. The problem seems to be in parsing the file name. Any ideas gratefully received. Rik PS: you'll find most MP3/MIDI attachments in the Fun & Games boards, most JPG files will be in Hobbies and pasttimes, or Help

선택된 해결법

There is a bug for this:
Bug 685060 simplemachines.org - Cannot download zip file due to broken content-disposition header (due to user-agent sniffing)
"It seems that the developers wrote a patch, applied it at their own site, but then didn't include it in their latest release".

문맥에 따라 이 답변을 읽어주세요 👍 2

모든 댓글 (5)

more options

The URL of my forum didn't make it to the post, it's www.idnetters.co.uk. You won't see all boards unless you join. I'd also add that it only seems to affect SMF forums.

more options

A filesize of -1 bytes is really strange. Maybe some broken headers?
Maybe it is related to some changes in the networking module?

  • Double quotes are no longer accepted as a delimiter for RFC 2231 or RFC 5987 encoding, as per those RFCs.
  • MIME header field parser (Content-Disposition) now requires "=" in parameters.

https://developer.mozilla.org/en/Firefox_8_for_developers#Network

more options

Thanks for that, I'll pass it on to my tech admins - I'm purely a 'front of house' type. :)

Rik

more options

선택된 해결법

There is a bug for this:
Bug 685060 simplemachines.org - Cannot download zip file due to broken content-disposition header (due to user-agent sniffing)
"It seems that the developers wrote a patch, applied it at their own site, but then didn't include it in their latest release".

more options

You're a genius - many thanks. :) Seems we'll have to wait for the bug fix then.

I really do appreciate your help with this.


Rik