mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
fix: 图片格式校验
This commit is contained in:
parent
1b9627eddc
commit
e3cf41fbd8
@ -19,7 +19,7 @@ public class UserInfoUptReqDto {
|
||||
@Length(min = 2,max = 10)
|
||||
private String nickName;
|
||||
|
||||
@Pattern(regexp="^/[^\s]{10,}\\.(png|jpg|jpeg|gif|bpm)$")
|
||||
@Pattern(regexp="^/[^\s]{10,}\\.(png|PNG|jpg|JPG|jpeg|JPEG|gif|GIF|bpm|BPM)$")
|
||||
private String userPhoto;
|
||||
|
||||
@Min(value = 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user