Unverified Commit bbf5f42c authored by Joel's avatar Joel Committed by GitHub

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

parent 3631e53f
...@@ -13,6 +13,7 @@ import { fetchFileUploadConfig } from '@/service/common' ...@@ -13,6 +13,7 @@ import { fetchFileUploadConfig } from '@/service/common'
import { fetchSupportFileTypes } from '@/service/datasets' import { fetchSupportFileTypes } from '@/service/datasets'
import I18n from '@/context/i18n' import I18n from '@/context/i18n'
import { LanguagesSupported } from '@/i18n/language' import { LanguagesSupported } from '@/i18n/language'
import { IS_CE_EDITION } from '@/config'
const FILES_NUMBER_LIMIT = 20 const FILES_NUMBER_LIMIT = 20
...@@ -180,7 +181,7 @@ const FileUploader = ({ ...@@ -180,7 +181,7 @@ const FileUploader = ({
if (!files.length) if (!files.length)
return false 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 }) }) notify({ type: 'error', message: t('datasetCreation.stepOne.uploader.validation.filesNumber', { filesNumber: FILES_NUMBER_LIMIT }) })
return false return false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment