diff --git a/src/forge/Upload/read.js b/src/forge/Upload/read.js index 9e5a09863..921374120 100644 --- a/src/forge/Upload/read.js +++ b/src/forge/Upload/read.js @@ -49,6 +49,10 @@ class Read extends Component { "psd", "cdr", "webp", + "vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "vnd.ms-powerpoint", + "vnd.openxmlformats-officedocument.presentationml.presentation", + "vnd.ms-excel" ]; const { fileList } = this.state; const { size } = this.props; @@ -59,7 +63,7 @@ class Read extends Component { } else if (!isLt100M) { this.props.showNotification(`文件大小必须小于${size}MB!`); } else if (file_type && forbidden_type.indexOf(file_type) !== -1) { - this.props.showNotification(`不支持${file_type}类型`); + this.props.showNotification(`仅支持文本格式,不支持图片,excel等不可以txt读取的文件`); } else { this.setState({ fileList: [file], @@ -91,9 +95,9 @@ class Read extends Component {

拖动文件或点击此处上传

- {/*

- 暂仅支持文件格式,不支持图片,excel等不可以txt读取的文件 -

*/} +

+ 暂仅支持文本格式,不支持图片,excel等不可以txt读取的文件 +

文件名请使用英文且不得超过{size}MB