unable to open a downloaded file in IE, "file not found..."

T

Trigger

I'm running into a problem where I download a ppt presentation from a
web site. I get the usual dialog box giving me the option to "open",
"save" or "cancel". However clicking "open" causes the dialog box to
appear again, and clicking "open" once more causes powerpoint to lauch
with an error:

The path or file name for C:\Documents and Settings\Username\Local
Settings\Temporary Internet Files\Content.IE5\KPQVCHuZ\TEST[1].ppt is
invalid. Please check that the path and file name are correct.

It looks to me like IE downloads the file to a temporary location
called \Content.IE5\KPQVCHuZ\TEST[1].ppt ...and then deletes it right
away as searching for it after yields nothing (no not even hidden).
Another thing IE seems to do is to rename TEST.PPT to TEST[1].PPT .
Dowloading this very same file from the same page using Mozilla works
fine.
Here's a snippet of the asp code used to send the file to the client:

-------------------------------------------------------------------

' get full path of specified file
strFilename = server.MapPath(strFile)

' clear the buffer
Response.Buffer = True
Response.Clear

' create stream
Set s = Server.CreateObject("ADODB.Stream")
s.Open

' set as binary
s.Type = 1

' send the headers to the users browser
Response.AddHeader "Content-Disposition", "attachment; filename=" &
f.name
Response.AddHeader "Content-Length", intFilelength
Response.Charset = "UTF-8"
'Response.ContentType = "application/octet-stream"
'Response.ContentType = "application/x-mspowerpoint"
Response.ContentType = "application/vnd.ms-powerpoint"
' ...as you can tell I've already tried a few mime types.

' output the file to the browser
Response.BinaryWrite s.Read
Response.Flush

' tidy up
s.Close
Set s = Nothing
-------------------------------------------------------------------

The reason I'm doing it like this is to force IE to open a dialog box
instead of just loading the presentation into the browser (which is a
problem for many of our users). Any ideas would be greatly
appreciated!
 
T

Trigger

Wow, nobody has any ideas about my last two posts? Are these issues
really that daunting? MVPs? Anyone?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top