Click to See Complete Forum and Search --> : Server Code for Download Prompts?


Arafel
04-21-2006, 06:01 PM
What kind of server code is needed to prompt for a download window when you click on a file. Evidently the server my site is on doesn't have it, so when you click a file that I want downloaded it gives a broken link. (these are .flac files, FYI).

russell
04-21-2006, 07:03 PM
Response.ContentType = contentType
Response.AddHeader "Content-Disposition", "attachment; filename=" & fileName
this should be before any content is flushed -- meaning at the top of your script. Have the link point at the page that this is on. user will get the download dialogue...