I have a script which records how many times a file has been downloaded. Then the file is downloaded.
I pass the filename like this:
The code in download.asp is: (minus the database code as it's quite long)
Clicking with the left mouse button works fine in all browsers, but there is always going to be someone who clicks with the right, and selects 'save target as' This works in IE and Opera, but Firefox saves the file as 'download.asp' If the asp extension is then renamed to .pdf the file opens okay.Code:Response.Redirect("/documents/" & Request("file"))
Does anybody know how to get Firefox to download the file with the correct name and extension?