Author Topic: Attachment issues  (Read 3442 times)

0 Members and 1 Guest are viewing this topic.

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
It seems more and more people have been having problems downloading attachments... in most cases they download as a .php instead.

Any idea what may be causing this?

I know that a few days back I tried a download in FireFox, but it kept trying to give me a .php. I went to IE7 and it worked just fine.

Seems one solution is to try renaming the downloaded .php file to whatever type it should be, i.e. renaming it to a .rar.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Iss Mneur

  • 210
  • TODO:
It appears it is a bug in SMF.  It seems SMF sends a modified Content-Disposition header to Firefox browsers that is incorrect (ie., not supported by the RFCs).  Older versions of Firefox are not affected because they allowed the incorrect syntax, but starting with FF8 the bug has been fixed which means FF8 users get a bad header that FF will ignore resulting in FF using the name of the file in the url (index.php) rather than the files name as sent by the server.

It appears the correct fix for this issue is to update SMF so that it doesn't sniff the user agent when setting this header, though it doesn't appear that SMF has actually made this fix available in the most recent version.  However, it seems there is a patch available to fix this problem before the SMF releases a new version.

In the mean time, I have install an addon that changed my user agent to Chrome 11 so SMF doesn't send me the unsupported header.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
I just ported the fix as outlined, so let's see what happens.

You may need to do a force-refresh load of HLP first.


***Edit: Disregard previous edit, it should be all good now, despite a slight hiccup.
« Last Edit: November 27, 2011, 01:19:10 am by Zacam »
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Iss Mneur

  • 210
  • TODO:
It doesn't appear to have changed anything for me.  Checking in wireshark it looks like I am still getting different content-disposition headers based on my user agent.  I will try it in the morning to see if its not Cloudflare caching the response (because the cache control headers are set to vary on user-agent (even though a file download is supposed to be a private cache only).

Attaching test attachment.

EDIT: still broken using FF8's default user agent.

[attachment deleted by a basterd]
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
FF8 here and that attachment looks like a php file to me.
Yep sorry, it no worky.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Well, I don't know what to say about that then, other than that the purported fix probably really isn't, but I'll keep an eye on the SMF boards for it.

But at least the "change" (when done properly) doesn't seem to have broken anything. (I'm on Pre-8 on my main machine, so things still look fine)
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Well I mean it looks to be a 7z file when you look at the post listing, but when you go to download it it comes up as a index.php.
Not sure if that helps any or not...
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

  
I just downloaded the shaders you just posted and it worked as it should.
Did you hear that fellas? She says I have a Meritorious Unit.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
rscaper1070: That's because those are a post inline link, not a post attachment.

Like I said, I'll keep up on the issue and I have FF8 on another machine, I'll try to work out some sort of a fix on a split copy of the forums and then migrate the actual working fix soon.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Iss Mneur

  • 210
  • TODO:
Okay.  Looking at the SMF bug number 4825, it has a new patch attached, apparently it fixes it without introducing more bugs (with respect to spaces in the file names).

They have several threads on this on the SMF forum.  They seem to have just fixed it there, I have asked SleePy which fix he actually used.
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Okay, so, in theory, this should now be fixed.

[attachment deleted by a basterd]
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Text received, test successful.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Worked for me.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Okay, so, in theory, this should now be fixed.

Works for me, too.  :yes:

Thanks, everyone!
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Fury

  • The Curmudgeon
  • 213
Was this full forum upgrade or partial upgrade to fix only this specific issue? Version number would indicate full upgrade, which I hope is the case due to security issues older versions had.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Oh, I just hacked the display for the version number.

...

...

Or maybe I'm just joking and we actually did get around to doing the upgrade AND implementing the attachment fix.

Who knows.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys