|
|
|
@ -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="">视频规格:avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm </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>
|
|
|
|
|