11Fermer13
SpipuLe 23/08/2011 à 16:52
ca c'est malheureusement normal... il n'a pas encore les headers quand il te propose le nom du fichier.

sinon, pour le download, normalement c'est ca qu'il faut mettre :

        header('Content-Type: application/force-download; name="'.$filename.'"');
        header('Content-Transfer-Encoding: binary');
        header('Content-Length: '.strlen($content));
        header('Content-Disposition: attachment; filename="'.$filename.'"');
        header('Expires: 0');
        header('Cache-Control: no-cache, must-revalidate');