IE-only attachment download problems [message #16237] |
Wed, 21 January 2004 17:50 |
mkettler
Messages: 6 Registered: January 2004
Karma: 0
|
Junior Member |
|
|
I'm having trouble with attachments on my fudForum.
Mozilla users can deal with attachments just fine.
Using IE 6, attachments that generate a "save" dialog fail. Attachments handled in-line by the browser like jpegs work when you click on them, but zips, gzips, ppt's, xls's etc do not.
right-clicking on the link and selecting "save target as" generates the following error message from IE:
"The file could not be written to the cache"
Clicking the link, and selecting "save" from the resultant dialog generates:
"Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found please try again later"
I've tried disabling referrer checks (in general and for attachments), rebuilding the theme, and doing a consistency check on the forum.
The apache logs indicate a successful access and do not report errors when the IE client tries the file.
The same IE client CAN download gzips from THIS forum, but not mine.
Is there a setting I should check?
|
|
|
|
|
Re: IE-only attachment download problems [message #24360 is a reply to message #16278] |
Mon, 25 April 2005 18:21 |
jonmoss
Messages: 93 Registered: September 2004 Location: Lansing, KS
Karma: 0
|
Member |
|
|
Is this fixed in 2.6.13RC1?
I have several users complaining about not being able to open or save attachments.
When the try to do Save Target As . . . it wants to save the index.php file and not the attachment.
Or if they click on the attachment link, and get an Open/Save dialog box, Open gives an error that the file could not be found. Save will have them save the file to a local folder (usually My Documents) and then they have to go find it and open it.
Strangely, this does not occur for me. If I click on the attachment link, I still get the error message trying to click Open, but if I save, I get another instance of the dialog box and then I can click Open just fine.
Thanks and have a great day!
Jon Moss
[Updated on: Mon, 25 April 2005 18:23] Report message to a moderator
|
|
|
|
|
|
|
Re: IE-only attachment download problems [message #32286 is a reply to message #32285] |
Mon, 19 June 2006 02:21 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
That's a really old version, I am quite certain it works in the new code, you may want to check current getfile.php.t and root_index.php.t and compare them with what you are currently using.
FUDforum Core Developer
|
|
|
|
Re: IE-only attachment download problems [message #32654 is a reply to message #32631] |
Wed, 12 July 2006 23:51 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Is the problem in IE6 or IE7? Are you sending any extra headers beyond the ones the forum sends normally? Is the forum running on http:// or https:// ?
FUDforum Core Developer
|
|
|
|
Re: IE-only attachment download problems [message #32658 is a reply to message #32656] |
Thu, 13 July 2006 03:19 |
dadnad
Messages: 12 Registered: February 2003
Karma: 0
|
Junior Member |
|
|
Hi again,
I'm replying to my own post here but think I've managed to get a working hack.
I checked out the headers being sent with downloads and noticed the Cache-Control headers were sending :
"Cache-Control: no-store, private, must-revalidate, proxy-revalidate, post-check=0, pre-check=0, max-age=0, s-maxage=0"
when downloading a file.
I put a line in getfile.php like this
header("Cache-Control:");
basically setting it to nothing and things appear to be working properly.
Cheers,
Adam T.
|
|
|
Re: IE-only attachment download problems [message #32664 is a reply to message #32658] |
Thu, 13 July 2006 13:38 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Does changing the header to
header("Cache-Control: must-revalidate, post-check=0, pre-check=0", 1);
do the trick? We use this "hack" for IE in https:// but not http, I wonder if perhaps it is needed for http:// as well...
FUDforum Core Developer
|
|
|