Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: file size limit to 15M (#431)

Joelbb3cc6bba679
diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx
index 3bf590fcc5f..eb5b007e6a8 100644
--- a/web/app/components/datasets/create/file-uploader/index.tsx
+++ b/web/app/components/datasets/create/file-uploader/index.tsx
@@ -30,7 +30,7 @@ const ACCEPTS = [
'.csv',
]
-const MAX_SIZE = 10 * 1024 * 1024
+const MAX_SIZE = 15 * 1024 * 1024
const BATCH_COUNT = 5
const FileUploader = ({
diff --git a/web/i18n/lang/dataset-creation.en.ts b/web/i18n/lang/dataset-creation.en.ts
index 16d877c8cda..3d37c421233 100644
--- a/web/i18n/lang/dataset-creation.en.ts
+++ b/web/i18n/lang/dataset-creation.en.ts
@@ -23,10 +23,10 @@ const translation = {
title: 'Upload text file',
button: 'Drag and drop file, or',
browse: 'Browse',
- tip: 'Supports txt, html, markdown, xlsx, and pdf. Max 10MB each.',
+ tip: 'Supports txt, html, markdown, xlsx, and pdf. Max 15MB each.',
validation: {
typeError: 'File type not supported',
- size: 'File too large. Maximum is 10MB',
+ size: 'File too large. Maximum is 15MB',
count: 'Multiple files not supported',
},
cancel: 'Cancel',
diff --git a/web/i18n/lang/dataset-creation.zh.ts b/web/i18n/lang/dataset-creation.zh.ts
index 4ec0f8cdf90..2433276178f 100644
--- a/web/i18n/lang/dataset-creation.zh.ts
+++ b/web/i18n/lang/dataset-creation.zh.ts
@@ -23,10 +23,10 @@ const translation = {
title: '上传文本文件',
button: '拖拽文件至此,或者',
browse: '选择文件',
- tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX,每个文件不超过 10 MB。',
+ tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX,每个文件不超过 15 MB。',
validation: {
typeError: '文件类型不支持',
- size: '文件太大了,不能超过 10MB',
+ size: '文件太大了,不能超过 15MB',
count: '暂不支持多个文件',
},
cancel: '取消',