07-17-2005, 07:30 PM
I want to make a link to download a video file. However when I click it, it opens to a stream... what am I missing??
example of what I got in now...
<a href="http://www.somesite.com/downloads/thefile.avi">TEXT LINK</a>
07-17-2005, 07:45 PM
To the best of MY knowledge, what you want to do is impossible, even if you use <embed>, <img> or other tags.
I may be wrong, and would love to be proven so, but in the meantime, might I suggest zipping the avi file and having someone download it that way. They unzip, and watch.
07-17-2005, 07:53 PM
This is a good suggestion... Thanks...
07-17-2005, 10:05 PM
You could also pass some headers in php. Let me know if you wanna do that.
07-18-2005, 01:41 AM
I know nothing about PHP but if you can explain it easily I'll give it a shot...
07-18-2005, 04:09 AM
You can make a file saved with a .php extension, the only thing in it will be this
header("Content-Type: video/avi; name=movie.avi");
header("Content-disposition: attachment; filename=movie.avi");
Change the name to match your movie name change the filename to match the movie file location. If you go to this page it will prompt a download page. You could directly link to this page and the user will be asked to open/save the avi file, but I think the zip method works fine as well.