To offer visitors a download without giving away the path to the file, I implemented the code as described in Microsofts Knowledge Base article "Use of the ADODB.Stream Object to Send Binary Files to the Browser through ASP" (http://support.microsoft.com/support/kb/articles/q276/4/88.asp
Most of the files I want to send are PDF, so I changed
Response.ContentType = "application/octet-stream"
Response.ContentType = "application/pdf"
I've also set
Response.AddHeader "Content-Disposition", "attachment; sFilename=" & objFile.Name
still, the browser suggests as a file name the name of the asp file that sends the pdf. I checked with a debug line
and it outputs the correct value. What is wrong here?