视频云服务出现异常,请重新上传。

dev_unstable
hjm 6 years ago
parent 7af46f772e
commit f5ac539fa6

@ -122,6 +122,8 @@ function doCreateUploader (options) {
},
// 文件上传失败
onUploadFailed: function (uploadInfo, code, message) {
options.onUploadFailed && options.onUploadFailed(uploadInfo)
console.log("onUploadFailed: file:" + uploadInfo.file.name + ",code:" + code + ", message:" + message)
$('#status').text('文件上传失败!')
},
@ -173,7 +175,6 @@ function doCreateUploader (options) {
export function getUploader (_login, options) {
_login && (login = _login)
if (!uploader || options.create == true) {
uploader = createUploader(options)
createUploader(options)
}
return uploader;
}

@ -138,6 +138,10 @@ function VideoUploadList (props) {
dispatch({type: 'updateProgress', uploadInfo, progressPercent})
},
onUploadFailed: (uploadInfo) => {
console.log('onUploadFailed', uploadInfo)
props.showNotification('视频云服务出现异常,请重新上传。')
}
onUploadEnd: (uploadInfo) => {
console.log('onUploadEnd', uploadInfo)

Loading…
Cancel
Save