Guten Abend
global $HTTP_USER_AGENT;
$save_as_name = "testbild.jpg";
$completefilepath=$system_path."images/testbild.jpg";
if (ereg("MSIE",$HTTP_USER_AGENT)) {
header("Content-type: application/x-msdownload");
}
else {
header("Content-type: application/octetstream");
}
header("Content-disposition: attachment; filename=".$save_as_name);
header ( "Content-Length: ".filesize($completefilepath));
readfile($completefilepath);
funktioniert bei mir...
Gruss Michael