Hello,
I'm trying to upload multiple files at a time; I'm receiving both of the files but they're coming one after another and passing a single file rather then an array of two files like I would have hoped and expected.
Here is the code that I've written:
in Html
<input name="docs[]" id="docs" type="file" />
in js:
$("#docs").kendoUpload({
async: {
saveUrl: '/Form/'+selectedSubscription.subscriptionId+'/uploadTransactionDocs',
autoUpload: false
},select: attachClickHandler,
success : function(e){
if(e.response.status=='success'){
docsReceivedLoad = e.response.msg;
}
}
});
function attachClickHandler(e)
{
window.setTimeout(function() {
$(".k-upload-selected").click(function(e) {
// custom logic
if (false) {
e.preventDefault();
return false;
}
});
}, 1);
}
Any idea why the saveUrl is being called twice with two files rather then 1 time with an array of 2 files?
Thank you.
Keith
I'm trying to upload multiple files at a time; I'm receiving both of the files but they're coming one after another and passing a single file rather then an array of two files like I would have hoped and expected.
Here is the code that I've written:
in Html
<input name="docs[]" id="docs" type="file" />
in js:
$("#docs").kendoUpload({
async: {
saveUrl: '/Form/'+selectedSubscription.subscriptionId+'/uploadTransactionDocs',
autoUpload: false
},select: attachClickHandler,
success : function(e){
if(e.response.status=='success'){
docsReceivedLoad = e.response.msg;
}
}
});
function attachClickHandler(e)
{
window.setTimeout(function() {
$(".k-upload-selected").click(function(e) {
// custom logic
if (false) {
e.preventDefault();
return false;
}
});
}, 1);
}
Any idea why the saveUrl is being called twice with two files rather then 1 time with an array of 2 files?
Thank you.
Keith