windows video/* 不管用 TODO

dev_unstable
hjm 6 years ago
parent 27991c8fe1
commit 1068b5d1fb

@ -177,10 +177,12 @@ function VideoUploadList (props) {
}
function doDelete(index, isSuccess) {
uploader.deleteFile(index)
// uploader.cancelFile(index)
if (isSuccess) {
deleteVideoInCloud(username, state.videoes[index].videoId)
}
// uploader.deleteFile(index)
deleteVideoInCloud(username, state.videoes[index].videoId)
} else {
// uploader.cancelFile(index)
}
clearInput()
dispatch({type: 'removeVideo', index})
@ -384,7 +386,7 @@ function VideoUploadList (props) {
<div className={`description ${noUploads ? 'noUploads' : ''}`}>
<div className="">视频大小不支持断点续传单个视频文件最大200M单次最多支持3个视频文件上传 </div>
<div className="">视频规格aviflvf4vm4vmovmp4rmvbswfwebm </div>
<div className="">温馨提示请勿上传违法视频平台将为每一个视频分配一个地址您可以通过引用地址将视频使用在开发社区等模块</div>
<div className="">温馨提示请勿上传违法视频平台将为每一个视频分配一个地址您可以通过引用地址将视频使用在开发社区等模块</div>
</div>
{!noUploads && <React.Fragment>
@ -405,6 +407,7 @@ function VideoUploadList (props) {
</React.Fragment>}
</div>
{/* windows video/* 不管用 TODO */}
<input type="file" id="fileUpload" style={{display: 'none'}} onChange={onUploadChange}
accept="video/*"
></input>

Loading…
Cancel
Save