Problem: Mac IE 'sniffs' forced uploads, and displays the contents of the file, when I require it to allow the user to save the file to disk, which is what happens on at least Windows IE 5.0 and 6.0.
From what I have read, I don't think thats can be solved for the Mac, but if anyone has a solution, I would love to know it.
Alternatively, is there any other way to automate/simplify the local save of a file, without Mac IE displaying it in the browser?
The code I'm using at the moment, that works for Windows IE 5.0 and 6.0 is:
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: filename="blah.gif");
header("Content-Transfer-Encoding: binary");
$fh = fopen($filename, "r");
fpassthru($fh);
Many thanks for any help or suggestions.