Empty file problem

J

JackRabbit

Hello all,
I created a cheap download script to download files. It works great on
almost ever user we have, except for a few. I think there is some type of
configuration problem on the server or browser, but I wanted to check with
you guys first.

Here is the script.

Set objXML = Server.CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET", FilePath, False
objXML.Send

'// SafeFullFileName is the file we are downloading. We check to be sure
it exists, right format, etc.

Response.AddHeader "content-disposition","attachment;filename=" &
SafeFullFileName
Response.ContentType = "application/" & SafeFullFileName
Response.BinaryWrite objXml.ResponseBody

Set objXml = Nothing


Thanks for the help.

cross posted at microsoft.public.scripting.vbscript
 

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

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,113
Latest member
Vinay KumarNevatia
Top