session_redirect404();
}
- header('Content-disposition: attachment; filename="'.str_replace('"', '', $filename).'"');
- sysdebug_off("Content-type: application/binary");
$length = filesize($filepath);
- header("Content-length: $length");
+ utils_headers_download($filename, 'application/binary', $length);
readfile_chunked($filepath);