fusenapi/utils/image/image_format.go
laodaming fdcd8c46e0 fix
2023-06-12 20:05:51 +08:00

11 lines
242 B
Go

package image
// 校验上传图片类型合法不合法
func CheckUploadImageFormat(fileName string) bool {
switch ext {
case "jpg", "png", "fbx", "glb", "hdr", "jpeg", "svg", "pdf", "psd", "webp", "gif":
return true
}
return false
}