|
@@ -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!");
|