Forum Moderators: phranque
<a href="file.mp3">download</a>
would instead cause the file to open in the default audio utility?
If this is the case, there are certainly some other ways to "force" a download, depending on your environment. For example, if you were using ASP, you could use the ADODB.Stream object (included in ADO 2.5) to read the mp3 file from the server's file system. Then you could use Response.BinaryWrite to write the data to the HTTP response. Something like the following code _should_ work.
<%
Set strm = Server.CreateObject("ADODB.Stream")
strm.Open
strm.Type = 1
strm.LoadFromFile "C:\Files\File1.mp3"
'Setting this HTTP header opens the "Save As" dialog box.
Response.ContentType = "application/octet-stream"
Response.BinaryWrite objStream.Read
objStream.Close
Set objStream = Nothing
%>