Author Topic: IE7 Problem  (Read 7370 times)

0 Members and 1 Guest are viewing this topic.

Offline JaseGW

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
IE7 Problem
« on: October 28, 2008, 05: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.
« Last Edit: October 29, 2008, 05:09:58 AM by rejetto »

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12778
  • Country: it
    • View Profile
Re: IE7 Problem
« Reply #1 on: October 29, 2008, 07:19:58 PM »
i will look into it asap

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12778
  • Country: it
    • View Profile
Re: IE7 Problem
« Reply #2 on: November 08, 2008, 09:29:22 AM »
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 ;)