|
@@ -129,11 +129,11 @@ $(document).ready(function () {
|
|
*/
|
|
*/
|
|
function validateFiles(files) {
|
|
function validateFiles(files) {
|
|
return files.every(file => {
|
|
return files.every(file => {
|
|
- if (file.size > 1024 * 1024 * 10) {
|
|
|
|
- toastr.error('文件大小限制为10MB');
|
|
|
|
|
|
+ if (file.size > 1024 * 1024 * 30) {
|
|
|
|
+ toastr.error('文件大小限制为30MB');
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- if (whiteList.indexOf(file.ext) === -1) {
|
|
|
|
|
|
+ if (whiteList.indexOf('.' + file.ext) === -1) {
|
|
toastr.error('请上传正确的格式文件');
|
|
toastr.error('请上传正确的格式文件');
|
|
return false
|
|
return false
|
|
}
|
|
}
|