deason 11 months ago
parent
commit
efb76bcd5a

+ 1 - 1
examcloud-starters/examcloud-face-verify-starter/src/main/java/cn/com/qmth/examcloud/starters/face/verify/common/CommonUtils.java

@@ -32,7 +32,7 @@ public class CommonUtils {
             throw new IllegalArgumentException("图片文件不存在!");
         }
 
-        String regex = "\\.(?:jpg|jpeg|png)$";
+        String regex = "\\.(?:jpg|jpeg|png|tmp)$";
         Matcher matcher = Pattern.compile(regex).matcher(imageFile.getName().toLowerCase());
         if (!matcher.find()) {
             throw new IllegalArgumentException("图片文件格式不正确,仅支持jpg、png!");