I have the following code that will download a video outside the web directory which is 70MB+. However, it doesn't seem to work on newer browsers. It will work on older IE, but it will not work on new IE 6 or Firefox. What have I done wrong?
Should I change the application-type?
$result = mysql_query($query);
$file = mysql_result($result, 0, 'file_name');
$newfile = mysql_result($result, 0, 'old_name');
$filepath = "/home/httpd/vhosts/site/videos/members/$file";
header("Cache-control: max-age=31536000");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Content-Length: ".filesize($filepath));
header("Content-type: application/octet-stream");
header("Content-disposition: $attachment filename={$newfile}");
header("Content-Transfer-Encoding: binary");
readfile($filepath);