Commit 76ff19cc authored by houzz's avatar houzz

增加文件上传取消时回调

parent e8545c25
......@@ -54,6 +54,8 @@ createuploadinfo回调方法必须配置,用于生成视频信息,文件上
* isAllowUploadCallback: 可选配置,文件上传前回调,参数为待上传的文件数组,返回值类型为boolean, 表示是否允许上传;
* uploadCancel:可选配置,文件上传取消时回调;
#### API方法:
......
......@@ -1175,6 +1175,9 @@
//取消时删除记录
$(data.context).remove();
data.context = null;
// 取消回调
this.callback("uploadCancel", data.video.ccvid, data.video.name);
},
//暂停事件处理
......
......@@ -50,6 +50,11 @@ var uploader = new CCH5Uploader(
console.log(recordNode);
},
// 取消上传回调处理
uploadCancel: function(ccvid, fileName) {
console.log("取消上传视频ccvid:" + ccvid + ",视频名称:" + fileName);
},
// 生成视频信息
createuploadinfo: function (fileName, fileSize, categoryId) {
var video = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment