[eluser]quibstar[/eluser]
Having issues with down loading videos. Here is my code:
Code:
function download()
{
$this->load->helper('download');
$name = $this->uri->segment(3);
$path = '/Users/homdir/Sites/amwayss/videos/'.$this->uri->segment(3);
$data = file_get_contents($path); // Read the file's content
force_download($name, $data);
}
I just get a blank page when trying to down load .mov files. Other types work e.g wmv, flv and m4v.