Bjr
Si tu utilises PHP alors tu peux essayer
test_envoi.php
<html>
<body>
<a href="envoi_image.php?filename=mon_image.jpg">Cliquer ici pour télécharger l'image</a>
</body>
</html>
envoi_image.php
<?php
if (isset($_GET["filename"]))
{
$filename=$_GET["filename"];
// Envoi du fichier
header('Content-Transfer-Encoding: none');
header('Content-Type: application/octetstream; name="'.$filename.'"');
header('Content-Disposition: attachment; filename="'.$filename.'"');
header('Content-length: '.filesize($filename));
header("Pragma: no-cache");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0, public");
header("Expires: 0");
@readfile($filename) OR die();
}
?>
PhP
Il y a 10 types de personnes dans le monde : ceux qui comprennent le binaire et les autres ...