@@ -265,7 +265,7 @@ class HomeController extends Controller
//pdf
header('Content-Type: application/pdf');
}
- header('Content-Disposition: attachment; filename="' . md5($fileName) . '"');
+ header('Content-Disposition: attachment; filename="' . $fileName . '"');
header('Content-Length: ' . (string) get_headers($url, 1)['Content-Length']); // 获取远程文件大小[3](@ref)
// 2. 分块输出文件流(避免内存溢出)
ob_clean();