From b055470147d4f6f1e8b88f1f73d6022289c9c5be Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Fri, 9 Jun 2023 16:11:27 +0800 Subject: [PATCH] Fix: xls not supported (#329) --- web/app/components/datasets/create/file-uploader/index.tsx | 2 +- web/i18n/lang/dataset-creation.en.ts | 2 +- web/i18n/lang/dataset-creation.zh.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx index 1efe8511f4..109424475c 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 b433d9e25f..99a94e850a 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 81f0fa4b57..c74b24e5f1 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',