完成头像上传与更新

This commit is contained in:
2025-05-27 11:46:20 +08:00
parent b8d3757397
commit efa390294d
6 changed files with 239 additions and 240 deletions
+1 -1
View File
@@ -374,7 +374,7 @@ class IndexController extends BaseController
try {
// 验证上传的文件
validate([
'image' => 'filesize:51200|fileExt:jpg,png,gif,jpeg'
'image' => 'filesize:51200|fileExt:jpg,png,gif,jpeg,webp'
])->check($file);
// 存储文件到public磁盘的uploads目录