fix: 多线程下载文件损坏的问题

This commit is contained in:
kuaifan
2025-01-15 15:27:39 +08:00
parent 34ffd96c86
commit a07913181a
4 changed files with 79 additions and 49 deletions

View File

@@ -1853,7 +1853,7 @@ class ProjectController extends AbstractController
}
//
$filePath = public_path($file->getRawOriginal('path'));
return Base::BinaryFileResponse($filePath, $file->name);
return Base::DownloadFileResponse($filePath, $file->name);
}
/**