Hi,
I have a little script to force download of documents from a ‘hidden’ location. Everything works fine, but the Browser (Safari) is not showing the expected file size. (vide attachment)
header("Content-type: ".$mime_type);
header("Content-Disposition: attachment; filename=$dl_filename");
header("Content-Length: ".filesize($file));
readfile($file);
Does anyone know what the problem could be?
(Firefox extension “Live HTTP headers” is by they way also not showing Content-Length information…)
Kind regards
Florian