搜尋 Mozilla 技術支援網站

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

Learn More

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