Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
bbf5f42c
Unverified
Commit
bbf5f42c
authored
Mar 04, 2024
by
Joel
Committed by
GitHub
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: CE edition limits upload file nums (#2677)
parent
3631e53f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.tsx
web/app/components/datasets/create/file-uploader/index.tsx
+2
-1
No files found.
web/app/components/datasets/create/file-uploader/index.tsx
View file @
bbf5f42c
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment