Autor Zpráva
Godoy
Profil *
Dobré ranko,

Potřebuji help -> stáhl jsem si na svůj web uloader , ale když chci potom stahovat soubor co jsem tam nahrál nestahuje mi to s puvodním jménem a nevím proč :( tady je kód tlačítka na které se kliká při stahování. Děkuju za pomoc

<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

if(!isset($_POST['open_submit'])) exit;

$open_submit = $_POST['open_submit'];
$file = $_POST['file'];
$file = '../../' . $file;

Header("Content-Length: ".filesize($file));
Header("Content-Disposition: attachment; filename=" . $file);
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
header("Expires: 0");
readfile($file);
exit;

exit;

?>
Toto téma je uzamčeno. Odpověď nelze zaslat.

0