site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


DC DSL
There'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.

Monday, 13-Feb 17:32:49 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online! © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics