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: xls not supported (#329)

KVOJJJinb055470147d4
diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx
index 1efe8511f4c..109424475c2 100644
--- a/web/app/components/datasets/create/file-uploader/index.tsx
+++ b/web/app/components/datasets/create/file-uploader/index.tsx
@@ -22,7 +22,7 @@ const ACCEPTS = [
'.md',
'.markdown',
'.txt',
- '.xls',
+ // '.xls',
'.xlsx',
'.csv',
]
diff --git a/web/i18n/lang/dataset-creation.en.ts b/web/i18n/lang/dataset-creation.en.ts
index b433d9e25f3..99a94e850a1 100644
--- a/web/i18n/lang/dataset-creation.en.ts
+++ b/web/i18n/lang/dataset-creation.en.ts
@@ -22,7 +22,7 @@ const translation = {
title: 'Upload text file',
button: 'Drag and drop file, or',
browse: 'Browse',
- tip: 'Supports txt, html, markdown, xlsx, xls, and pdf.',
+ tip: 'Supports txt, html, markdown, xlsx, and pdf.',
validation: {
typeError: 'File type not supported',
size: 'File too large. Maximum is 15MB',
diff --git a/web/i18n/lang/dataset-creation.zh.ts b/web/i18n/lang/dataset-creation.zh.ts
index 81f0fa4b575..c74b24e5f18 100644
--- a/web/i18n/lang/dataset-creation.zh.ts
+++ b/web/i18n/lang/dataset-creation.zh.ts
@@ -22,7 +22,7 @@ const translation = {
title: '上传文本文件',
button: '拖拽文件至此,或者',
browse: '选择文件',
- tip: '已支持 TXT, HTML, Markdown, PDF, XLSX, XLS',
+ tip: '已支持 TXT, HTML, Markdown, PDF, XLSX',
validation: {
typeError: '文件类型不支持',
size: '文件太大了,不能超过 15MB',