Click to See Complete Forum and Search --> : File Extension Displayes Twice In Save As Prompt


athankon
07-25-2005, 10:42 AM
This is weird! :eek:
I create some links dynamically but when a file is .zip or .doc the extension of the file is displayed twice in the prompt save as OR open prompt box. When the file is then saved it gets the duplicated extension. File appears normal in HTML Source and in window Status(on MouseOver).

Code Sample:

<%
response.write "<a href=""VIEWABLE/"&replace(Server.URLEncode("CorrectionsTPH A.doc"),"+","%20")&""" >"&"CorrectionsTPH A.doc"&"</a>"
%>

I guess that this has something to do with MIME types but i dont know a way around it

Help is appreciated!!!
Thanks in advance

buntine
07-25-2005, 05:58 PM
The URLEncode function replace spaces with %20. No need for that replace function.

Your hardcoding it there, right? What "Save As" prompt are you referring to? The native Windows one? Are you dynamically creating these files?

Regards.

Bullschmidt
07-25-2005, 09:45 PM
And of course if you can help it in the first place you might not want to have spaces in any filenames on the Web... :)

athankon
07-26-2005, 03:02 AM
Ok .. i mean the windows File download that prompts for opening or saving

athankon
07-26-2005, 03:12 AM
leaving spaces out is not an option for me .. files can have spaces .. there is an issue by microsoft that says there is a bug in windows and sometimes the extension of the file is duplicated...possible resolution is not at all satisfactory.. I dont know what to do ..