Commit d13f0dc4 authored by 田翔's avatar 田翔

fix: 文件上传全部不做限制

parent 90e93ed6
{
"name": "panda-xform",
"version": "6.0.22",
"description": "6.0.22 文件名称修改为/截取方式",
"version": "6.0.23",
"description": "6.0.23 文件上传全部不做限制",
"keywords": [
"panda-xform"
],
......
......@@ -12,11 +12,18 @@ import { convertUrlToBase64 } from '../../../../utils/index'
import fileImg from '../../../../assets/images/file/文件通用图标.png'
const accepts = {
'全部': ['.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.docx', '.xlsx', '.doc', '.xls', '.pdf', '.mp4', '.mp3'],
'全部': [
'.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.webp',
'.docx', '.xlsx', '.doc', '.xls', '.ppt', '.pptx', '.pdf',
'.mp4', '.mov',
'.mp3', '.m4a', '.acc',
'.zip', '.7z', '.rar', '.dwg', '.ofd'
],
'全部': [],
'图片': ['.bmp', '.gif', '.jpeg', '.tiff', '.png', '.svg', '.jpg', '.webp'],
'文档': ['.docx', '.xlsx', '.pdf', '.doc', '.xls'],
'视频': ['.mp4'],
'音频': ['.mp3'],
'文档': ['.docx', '.xlsx', '.doc', '.xls', '.ppt', '.pptx', '.pdf'],
'视频': ['.mp4', '.mov'],
'音频': ['.mp3', '.m4a', '.acc'],
}
const getFileType = (fileName) => {
......
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