文件上传大小修改为50MB

This commit is contained in:
wong
2025-11-13 16:09:09 +08:00
parent a74f9b9557
commit 268da6e47c

View File

@@ -27,7 +27,7 @@ class Attachment extends Controller
// 验证文件
$validate = \think\facade\Validate::rule([
'file' => [
'fileSize' => 50485760, // 10MB
'fileSize' => 50485760, // 50MB
'fileExt' => 'jpg,jpeg,png,gif,doc,docx,pdf,zip,rar,mp4,mp3,csv,xlsx,xls,ppt,pptx,txt',
]
]);