上传
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user