Download og update eller redirect…
Hej alleJeg har en php side hvorfra folk skal kunne downloade filer:
session_cache_limiter('none');
session_start();
$file = $_REQUEST['FilesFile'];
StartDownload('files/'.$file, $file);
function StartDownload($f_location,$f_name){
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize($f_location));
header("Content-Disposition: attachment; filename=".basename($f_name));
readfile($f_location);
}
