|
...
|
...
|
@@ -349,7 +349,8 @@ class FileController |
|
|
|
header('Content-Type: application/octet-stream');
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($info['name'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// header('Content-Disposition: attachment; filename="' . !empty($info['name']) ? $info['name'] : '未命名'.basename($info['path']) . '"');
|
|
|
|
header('Content-Disposition: attachment; filename="index.pdf"');
|
|
|
|
$name = !empty($info['name']) ? $info['name'] : '未命名'.basename($info['path']);
|
|
|
|
header('Content-Disposition: attachment; filename="'.$name.'"');
|
|
|
|
// 下载文件
|
|
|
|
readfile($fileUrl);
|
|
|
|
}
|
...
|
...
|
|