Search Support

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.

Learn More

v8 blocks attachment downloads from SMF forums

  • 5 replies
  • 17 have this problem
  • 1 view
  • Last reply by 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

Chosen solution

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".

Read this answer in context 👍 2

All Replies (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

Chosen Solution

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