|
|
@ -356,7 +356,7 @@ class Challengesjupyter extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const isLt10M = file.size / 1024 / 1024 < 10;
|
|
|
|
const isLt10M = file.size / 1024 / 1024 < 10;
|
|
|
|
if (!isLt10M) {
|
|
|
|
if (!isLt10M) {
|
|
|
|
this.props.showNotification('文件大小必须小于10MB!');
|
|
|
|
this.props.showNotification('请上传10m以内ipynb格式的文件!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return isLt10M;
|
|
|
|
return isLt10M;
|
|
|
|
},
|
|
|
|
},
|
|
|
|