 DC DSLThere's a reason I'm Command.Premium join:2000-07-30 Washington, DC kudos:2 Reviews:
·Covad Communicat..
·Verizon Online DSL
| reply to anonymoose
Re: How to make a .wmv download instead of stream?I don't use .htaccess handle things like forcing downloads by adding/manipulating the headers and response in server-side code:
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=mymovie.wmv");
Response.ContentType = "application/octet-stream";
Response.WriteFile(Server.MapPath(@"~/somefolder/mymovie.wmv"));
Response.End();
}
If you're not using ASP.NET, surely PHP has a similar capability.
-- There is no giant fur-bearing trout. |