0
我如何得到chunking成功url的响应:罚款上传如何获得分块成功的回应?
我可以看到它在控制台使用调试的响应,但我不能用回调得到它。
这里是我的代码:
// Some options to pass to the uploader are discussed on the next page
var uploader = new qq.FineUploader({
element: document.getElementById("uploader"),
debug: true,
retry: {
enableAuto: false, // defaults to false
showButton:true
},
request: {
endpoint: '{{ hls_video_upload_form.action }}',
params: {
// user_kind: '{{ hls_video_upload_form.user_kind }}',
// user_ref: '{{ hls_video_upload_form.user_ref }}'
user_ref: $("input[name=user_ref]").val(), // USER_REF from Form
user_kind: $("input[name=user_kind]").val() // USER_KIND from Form
}
},
chunking: {
enabled: true,
mandatory: true,
concurrent: {
enabled: true
},
success: {
endpoint: '/onCOMPLETE_UPLOAD'
// I WANT THE RESPONSE OF THESE
}
},
callbacks: {
onComplete: function(id, fileName, response, xhr) {
console.log(response);
},
onUploadChunkSuccess : function(id, chunkData, response, xhr) {
console.log(response);
}
}
})