Skip to content

Commit

Permalink
Merge pull request #2928 from liuliaozhong/3.8.x_issue_2917
Browse files Browse the repository at this point in the history
feat: 本地文件上传类型限制,需要支持.xx.xx类型 #2917
  • Loading branch information
jsonwan authored May 9, 2024
2 parents 98125f1 + 95a1a71 commit c95ab0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class FileUploadSettingReq {
private Integer restrictMode;

@ApiModelProperty("后缀列表")
private List<@Pattern(regexp = "^\\.[A-Za-z0-9_-]{1,24}$",
private List<@Pattern(regexp = "^(\\.[A-Za-z0-9_-]{1,24})+$",
message = "{validation.constraints.InvalidUploadFileSuffix.message}") String> suffixList;

}

0 comments on commit c95ab0f

Please sign in to comment.