チャンクの成功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);
}
}
})