1.提交缺失的东西
This commit is contained in:
@ -118,7 +118,7 @@ class FileServer
|
|||||||
$fileInfo = $StorageDriver->getFileInfo();
|
$fileInfo = $StorageDriver->getFileInfo();
|
||||||
|
|
||||||
// 验证是否是图片文件
|
// 验证是否是图片文件
|
||||||
if (! check_is_image($StorageDriver->getFileInfo()['tmp_name'] ?? '')) {
|
if (! check_is_image($StorageDriver->getFileInfo()['name'] ?? '')) {
|
||||||
throw new Exception('不是有效的图像文件');
|
throw new Exception('不是有效的图像文件');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user