|
|
|
@@ -194,6 +194,11 @@ export default { |
|
|
|
const filesSize = fileList.reduce((acc, item, index) => acc + item.size, 0) + (file ? file.size : 0); |
|
|
|
const filesCount = fileList.length + (file ? 1 : 0); |
|
|
|
const allfilesSize = filesSize + this.state.size; |
|
|
|
if (file && filesCount > maxFileSize) { |
|
|
|
this.dropzoneHandler.removeFile(file); |
|
|
|
this.showUploadErrInfo(true, this.getDefaultErrTxt()); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (filesCount > maxFileSize || allfilesSize > maxModelFilesSize) { |
|
|
|
this.showUploadErrInfo(true, this.getDefaultErrTxt()); |
|
|
|
return false; |
|
|
|
|