diff --git a/ui/src/utils/utils.ts b/ui/src/utils/utils.ts index 818a18115..698a63625 100644 --- a/ui/src/utils/utils.ts +++ b/ui/src/utils/utils.ts @@ -38,7 +38,7 @@ export function fileType(name: string) { 获得文件对应图片 */ const typeList: any = { - txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html'], + txt: ['txt', 'pdf', 'docx', 'csv', 'md', 'html', 'PDF'], QA: ['xlsx', 'csv', 'xls'] } diff --git a/ui/src/views/dataset/component/UploadComponent.vue b/ui/src/views/dataset/component/UploadComponent.vue index 3c35c2c3f..d51aff263 100644 --- a/ui/src/views/dataset/component/UploadComponent.vue +++ b/ui/src/views/dataset/component/UploadComponent.vue @@ -58,7 +58,7 @@ action="#" :auto-upload="false" :show-file-list="false" - accept=".txt, .md, .csv, .log, .docx, .pdf, .html" + accept=".txt, .md, .csv, .log, .docx, .pdf, .html, .PDF" :limit="50" :on-exceed="onExceed" :on-change="fileHandleChange"