public function download()
{
$famlePath = $_GET[‘resum’];
famlePath";
// 下载文件存放目录
// 检查文件是否存在
if (! file_exists($file_dir) ) {
$this->error(‘文件未找到’);
}else{
// 打开文件
file_dir, “r”);
// 输入文件标签
Header(“Content-type: application/octet-stream”);
Header(“Accept-Ranges: bytes”);
Header(“Accept-Length:”.filesize($file_dir));
Header(“Content-Disposition: attachment;filename=” . file1, filesize(file1);
exit();
}
}