From cee025b35fcbca5003c974257f792ca20b4745b5 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 20 Aug 2019 09:45:06 +0800 Subject: [PATCH] ogm --- .../react/src/modules/user/usersInfo/video/VideoUploadList.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js index dcf195deb..bcfb0deb2 100644 --- a/public/react/src/modules/user/usersInfo/video/VideoUploadList.js +++ b/public/react/src/modules/user/usersInfo/video/VideoUploadList.js @@ -61,6 +61,10 @@ function VideoUploadList (props) { // alert("请先选择需要上传的文件!") return } + if (file.type && file.type.indexOf('ogm') != -1) { + showNotification(`不支持的视频格式`) + return; + } if (file.size > 200 * 1024 * 1024) { // 超过200m TODO clearInput()