v8 blocks attachment downloads from SMF forums
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".
All Replies (5)
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.
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
Thanks for that, I'll pass it on to my tech admins - I'm purely a 'front of house' type. :)
Rik
தீர்வு தேர்ந்தெடுக்கப்பட்டது
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".
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