|
|
|
@ -47,7 +47,7 @@ function doCreateUploader (options) {
|
|
|
|
|
addFileSuccess: function (uploadInfo) {
|
|
|
|
|
|
|
|
|
|
console.log("addFileSuccess: " + uploadInfo.file.name)
|
|
|
|
|
|
|
|
|
|
options.addFileSuccess && options.addFileSuccess(uploadInfo)
|
|
|
|
|
uploader.startUpload()
|
|
|
|
|
},
|
|
|
|
|
// 开始上传
|
|
|
|
@ -77,7 +77,7 @@ function doCreateUploader (options) {
|
|
|
|
|
var videoId = data.VideoId
|
|
|
|
|
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId)
|
|
|
|
|
|
|
|
|
|
options.addFileSuccess && options.addFileSuccess(uploadInfo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
// 删除当前出错的,并执行下一个任务
|
|
|
|
@ -109,7 +109,7 @@ function doCreateUploader (options) {
|
|
|
|
|
uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress)
|
|
|
|
|
// , videoId
|
|
|
|
|
|
|
|
|
|
options.addFileSuccess && options.addFileSuccess(uploadInfo)
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
uploader.deleteFile(uploader._curIndex)
|
|
|
|
|
uploader.nextUpload()
|
|
|
|
|