fix: 没有后缀名无法下载文件的问题
This commit is contained in:
@@ -1507,7 +1507,7 @@ class ProjectController extends AbstractController
|
||||
}
|
||||
//
|
||||
$filePath = public_path($file->getRawOriginal('path'));
|
||||
return Response::streamDownload(function() use ($filePath) {
|
||||
return Base::streamDownload(function() use ($filePath) {
|
||||
echo file_get_contents($filePath);
|
||||
}, $file->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user