I have a list of hyperlinks to files and would like to have the download box appear when user clicks on file links(of any type) instead of the files opening right away.
The following code fails at the loadfile command. It gives error 500. Can someone please help?
Thank you in advance,
<%@ Language=VBScript %>
'Set the file and path
fileName = request.querystring("f")
filePath = "http://authoring.tbs-sct.gc.ca/emis-sigd/download/" & fileName
'Create the header information
Response.ContentType = "application/asp-unknown"
Response.AddHeader "content-disposition","attachment; filename=" & fileName
'Create and configure the object
Set FStream = Server.CreateObject("ADODB.Stream")
FStream.Type = 1
'Stream it to the client