修改上传文上限

This commit is contained in:
wong
2025-11-12 17:43:57 +08:00
parent 674bbe1c3e
commit 75e35f52ab

View File

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