支持用户名带小数点,上传文件大小最大2G

pull/45/merge
ibuler 2016-01-15 15:54:49 +08:00
parent 6ba9191b30
commit 28e0ea3e81
2 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,7 @@ $('#userForm').validator({
timely: 2, timely: 2,
theme: "yellow_right_effect", theme: "yellow_right_effect",
rules: { rules: {
check_username: [/^\w{3,20}$/, '大小写字母数字和下划线'], check_username: [/^[\w.]{3,20}$/, '大小写字母数字和下划线小数点'],
type_m: function(element){ type_m: function(element){
return $("#M").is(":checked"); return $("#M").is(":checked");
} }

View File

@ -99,6 +99,7 @@
autoProcessQueue: false, autoProcessQueue: false,
uploadMultiple: true, uploadMultiple: true,
parallelUploads: 100, parallelUploads: 100,
maxFilesize: 2048,
maxFiles: 100, maxFiles: 100,
url: '/file/upload/', url: '/file/upload/',