Forum Moderators: coopster
<?// get.php
header('Content-Type: image/jpeg');
header('Content-Disposition: attachment; filename="KG800_01L.jpg"');
header('Accept-Ranges: bytes');
header('Pragma: no-cache');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-transfer-encoding: binary');
header('Content-length: ' . @filesize('KG800_01L.jpg'));
@readfile('KG800_01L.jpg');
?>
Which works OK on IE and FireFox, but on the browser from my mobile phones it tries to download the "get.php" file, instead of downloading the image file.
Is there something missing on that script? I really need to make the browser capable of retrieving the file this way, thanks.
I wish you luck! :)