diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 781d5634f..976387dd9 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2837,7 +2837,7 @@ upload_complete = Uploading complete failed = Upload Failed enable_minio_support = Enable minio support to use the dataset service max_file_tooltips= Upload a maximum of ? files at a time, each file does not exceed ? MB. -max_size-tooltips= You can only upload a maximum of ? files at a time. The upload limit has been reached, please do not add more files. +max_size_tooltips= You can only upload a maximum of ? files at a time. The upload limit has been reached, please do not add more files. [notification] notifications = Notifications diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 5a047ce9e..6e4b2dc59 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -2843,7 +2843,7 @@ upload_complete=上传完成 failed=上传失败 enable_minio_support=启用minio支持以使用数据集服务 max_file_tooltips=单次最多上传?个文件,每个文件不超过? MB。 -max_size-tooltips=一次最多只能上传?个文件, 上传已达到上限,请勿再添加文件。 +max_size_tooltips=一次最多只能上传?个文件, 上传已达到上限,请勿再添加文件。 [notification] notifications=通知 diff --git a/web_src/js/index.js b/web_src/js/index.js index 3127e2110..8cbf86fb2 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2803,7 +2803,7 @@ $(document).ready(async () => { } }); this.on('addedfile',(file)=>{ - if(file.size/(1000*1000)>3){ + if(file.size/(1000*1000)>$dropzone.data('max-size')){ this.removeFile(file) $('.maxfilesize.ui.red.message').text(maxFileTooltips) $('.maxfilesize.ui.red.message').css('display','block')