Link to home
Start Free TrialLog in
Avatar of CTL1989
CTL1989

asked on

How do I allow mov download

We have to upload files to our web server and then create links so clients can download then - just basic text a href links.  When the file is a .mov file the links do not seem to work - we get a cannot open file when right clicking on the link and choosing save as.  Is there a way to fix this
Avatar of Noduzz
Noduzz

Have you tried this on more than one machine and/or browser?
Avatar of CTL1989

ASKER

Yes various browsers and machines.  The links work if the file is wmv, ppt, xls etc, just not mov.  if we rename the file from .mov to .wmv it works.
what kind of web server are you using?
Avatar of CTL1989

ASKER

windows server 2008, page is .aspx, asp.net 2
have you tried a simple html page to see if the problem is only related to the asp page?
Avatar of CTL1989

ASKER

i'll give that a go when I'm in work tomorrow
The best thing to do is create a download handler (.aspx) file that will stream the file back out to the end user.   You then create links like:

http://domain.com/download.aspx?file=url/encoded/path/to/file.mov

Then, in your aspx file, you check to make sure that the file is safe for download, set some headers, and stream the data to the browser.
ASKER CERTIFIED SOLUTION
Avatar of pete-mcpetey
pete-mcpetey
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial