Bonjour,
Pour mon site, je force le téléchargement d'images HD avec un script Php.
L'image est téléchargé seulement celle-ci est découpée en trois parties qui ne sont pas correctement positionnées.
Voici mon script :
<?php
$img = $_GET['path']."/".$_GET['dir']."/".$_GET['name'];
$name = $_GET['name'];
header('Content-Transfer-Encoding: none');
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="'.$name.'"');
header('Content-Length: ' . filesize($img));
header('Expires: 0');
@readfile($img) OR die();
?>
Merci d'avance...
Configuration: Firefox 3.0.1