dev_oauth
hjm 6 years ago
parent b4a84fa8d6
commit 39b239c2d7

@ -61,7 +61,14 @@ function VideoUploadList (props) {
// alert("请先选择需要上传的文件!")
return
}
if (file.type && file.type.indexOf('ogm') != -1) {
// avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm
if (file.name
&& file.name.indexOf('.avi') == -1 && file.name.indexOf('.flv') == -1
&& file.name.indexOf('.f4v') == -1 && file.name.indexOf('.m4v') == -1
&& file.name.indexOf('.mov') == -1 && file.name.indexOf('.mp4') == -1
&& file.name.indexOf('.rmvb') == -1 && file.name.indexOf('.swf') == -1
&& file.name.indexOf('.webm') == -1
) {
showNotification(`不支持的视频格式`)
return;
}

Loading…
Cancel
Save