Commit 39a7dce8 authored by mhw's avatar mhw

文件类型校验

parent 3fc1cde9
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
{{ form.knowledge_base_name }} {{ form.knowledge_base_name }}
<el-form-item label="上传知识库文件:" prop="filesArr"> <el-form-item label="上传知识库文件:" prop="filesArr">
<el-button @click="clickUp" :size="defaultFormItemSize" type="primary">上传</el-button> <el-button @click="clickUp" :size="defaultFormItemSize" type="primary">上传</el-button>
<input style="display:none" ref="upFile" type="file" @change="fileinfo($event.target.files)"> <input style="display:none" ref="upFile" type="file" @change="fileinfo($event.target.files)" accept=".html, .md, .json, .csv, .pdf, .png, .jpg, .jpeg, .bmp, .eml, .msg, .rst, .rtf, .txt, .xml, .docx, .epub, .odt, .ppt, .pptx, .tsv, .htm" >
<div v-for="item in files" :key="item.name">{{ item.name }}</div> <div v-for="item in files" :key="item.name">{{ item.name }}</div>
</el-form-item> </el-form-item>
<el-form-item label="单段文本最大长度:"> <el-form-item label="单段文本最大长度:">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment