feat: 新增临时压缩下载文件24小时自动清理

This commit is contained in:
ganzizi
2023-11-17 11:56:22 +08:00
parent 14913ae312
commit 2737fa4697
3 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1114,6 +1114,6 @@ class FileController extends AbstractController
if (!file_exists($zipPath)) {
abort(403, "The file does not exist.");
}
return response()->download($zipPath)->deleteFileAfterSend(true);
return response()->download($zipPath);
}
}