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