Преглед на файлове

1.修复中文下载不能问题
2.海报自己上传
3.默认打开产品手册

moshaorui преди 1 седмица
родител
ревизия
48aac900d1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Http/Controllers/HomeController.php

+ 1 - 1
app/Http/Controllers/HomeController.php

@@ -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();