fix
This commit is contained in:
parent
69e2fd4362
commit
346023593d
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user