From 24fbbbb07b02d629f9a67e3ed899bf8235c124df Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 24 Oct 2025 16:27:17 +0800 Subject: [PATCH] use file_upload_limit --- web/app/components/datasets/create/file-uploader/index.tsx | 6 +++--- web/models/common.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx index a5165d74d4..a03e40e609 100644 --- a/web/app/components/datasets/create/file-uploader/index.tsx +++ b/web/app/components/datasets/create/file-uploader/index.tsx @@ -70,7 +70,7 @@ const FileUploader = ({ const fileUploadConfig = useMemo(() => fileUploadConfigResponse ?? { file_size_limit: 15, batch_count_limit: 5, - batch_upload_limit: 5, + file_upload_limit: 5, }, [fileUploadConfigResponse]) const fileListRef = useRef([]) @@ -162,7 +162,7 @@ const FileUploader = ({ }, [fileUploadConfig, uploadBatchFiles]) const initialUpload = useCallback((files: File[]) => { - const filesCountLimit = fileUploadConfig.batch_upload_limit + const filesCountLimit = fileUploadConfig.file_upload_limit if (!files.length) return false @@ -327,7 +327,7 @@ const FileUploader = ({ size: fileUploadConfig.file_size_limit, supportTypes: supportTypesShowNames, batchCount: fileUploadConfig.batch_count_limit, - totalCount: fileUploadConfig.batch_upload_limit, + totalCount: fileUploadConfig.file_upload_limit, })} {dragging &&
}
diff --git a/web/models/common.ts b/web/models/common.ts index d958dfa585..d83ae5fb98 100644 --- a/web/models/common.ts +++ b/web/models/common.ts @@ -236,7 +236,7 @@ export type FileUploadConfigResponse = { audio_file_size_limit?: number // default is 50MB video_file_size_limit?: number // default is 100MB workflow_file_upload_limit?: number // default is 10 - batch_upload_limit: number // default is 5 + file_upload_limit: number // default is 5 } export type InvitationResult = {