From 346023593d987cf2ce9d55c37bc305d31395df13 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 13 Jun 2023 10:03:09 +0800 Subject: [PATCH] fix --- utils/image/image_format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/image/image_format.go b/utils/image/image_format.go index d307b597..51f53f3d 100644 --- a/utils/image/image_format.go +++ b/utils/image/image_format.go @@ -2,7 +2,7 @@ package image // 校验上传图片类型合法不合法 func CheckUploadImageFormat(fileName string) bool { - switch ext { + switch fileName { case "jpg", "png", "fbx", "glb", "hdr", "jpeg", "svg", "pdf", "psd", "webp", "gif": return true }