rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: JaseGW on October 28, 2008, 11:16:04 PM

Title: IE7 Problem
Post by: JaseGW on October 28, 2008, 11:16:04 PM
There apears to be a bug in IE7,

A file named original "This file.ext" becomes This_file.ext when downloaded and saved.
Basically, IE7 replaces a space with an underscore.

M$ say......

"The change that causes the _ to be put in was made to the caching
mechanism.  There is no switch to override this.
You can however workaround this on your server.
You will have to inject the escape char for space into the file name (%20).  This will work with IE6 and IE7."
 
So the fix is to do something like this:
 
Response.AddHeader "content-disposition","attachment; filename=" & chr (34) &
replace( myFileName," ","%20") & chr (34) & ";"
 
So, I guess my question is, can this be put in the tpl file ? if so, where ?
This is not a problem if you use firefox, unfortunatly, not everybody has seen the light!

Thanks.
Title: Re: IE7 Problem
Post by: rejetto on October 30, 2008, 01:19:58 AM
i will look into it asap
Title: Re: IE7 Problem
Post by: rejetto on November 08, 2008, 03:29:22 PM
ok, i applied the suggested workaround, but i noticed it works only when the save-dialog is displayed.
when the file is open inside the browser, and you then ask to save, then %20 would be saved instead of spaces.
for this reason i found a way to apply the workaround only when the dialog is displayed.
with no dialog, it will stay with the usual underscore problem, that's better than having those %20 in the name.

wait for build #213 ;)