This commit is contained in:
2026-01-15 17:30:11 +08:00
parent a2000127bc
commit 3d51a841cf
+1 -1
View File
@@ -135,7 +135,7 @@ class UploadController
'image/webp',
];
$mime = $file->getMimeType();
$mime = $file->getUploadMimeType();
if (!in_array($mime, $allowMime, true)) {
return $this->error('不支持的图片类型,支持jpeg、png、webp');
}