浏览代码

fix: CE edition limits upload file nums (#2677)

tags/0.5.8
Joel 1年前
父节点
当前提交
bbf5f42c87
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      web/app/components/datasets/create/file-uploader/index.tsx

+ 2
- 1
web/app/components/datasets/create/file-uploader/index.tsx 查看文件

@@ -13,6 +13,7 @@ import { fetchFileUploadConfig } from '@/service/common'
import { fetchSupportFileTypes } from '@/service/datasets'
import I18n from '@/context/i18n'
import { LanguagesSupported } from '@/i18n/language'
import { IS_CE_EDITION } from '@/config'

const FILES_NUMBER_LIMIT = 20

@@ -180,7 +181,7 @@ const FileUploader = ({
if (!files.length)
return false

if (files.length + fileList.length > FILES_NUMBER_LIMIT) {
if (files.length + fileList.length > FILES_NUMBER_LIMIT && !IS_CE_EDITION) {
notify({ type: 'error', message: t('datasetCreation.stepOne.uploader.validation.filesNumber', { filesNumber: FILES_NUMBER_LIMIT }) })
return false
}

正在加载...
取消
保存