Ehhez egy php fájl kell neked. Ez egy nagyon egyszerű példa:
legyen a letolt.php tartalma ez:
<?php
$file = str_replace('../','',$_GET['file']);
header ("Content-type: octet/stream");
header ("Content-disposition: attachment; filename=".$file.";");
header("Content-Length: ".filesize($file));
readfile($file);
exit;
?>
Ha beírod az url-be, hogy valami.hu/letolt.php?file=valami.pdf, akkor ez letölti neked. Itt ugye a pdf és a fájl egy helyen van.
Fotóim https://fb.com/toth.szabolcs.art || IG: http://instagram.com/_tothszabolcs_ || Weblapom http://szabolcs-toth.com