Hi, I have issue with folder uploading.
My scenario is:
- user drag and drop folder on Kendo uploader;
- in method upload for Kendo uploader I check if file have't extension and it's file size is 0;
- if yes I cancel uploading using such code:
e.preventDefault();
return false;
- if no continue file uploading
But for some folders I have situation when it's size is not 0.
How I can correctly prevent folder uploading using Kendo Uploader.
I check this in Chrome browser version Version 29.0.1547.76 m.
My code is:
upload: function (e) {
$.each(e.files, function (index, el)
{
//If we try to upload folder prevent this
if (el.extension === "" && (typeof el.size === "undefined" || el.size === 0)) {
e.preventDefault();
return false;
}
});
}
My scenario is:
- user drag and drop folder on Kendo uploader;
- in method upload for Kendo uploader I check if file have't extension and it's file size is 0;
- if yes I cancel uploading using such code:
e.preventDefault();
return false;
- if no continue file uploading
But for some folders I have situation when it's size is not 0.
How I can correctly prevent folder uploading using Kendo Uploader.
I check this in Chrome browser version Version 29.0.1547.76 m.
My code is:
upload: function (e) {
$.each(e.files, function (index, el)
{
//If we try to upload folder prevent this
if (el.extension === "" && (typeof el.size === "undefined" || el.size === 0)) {
e.preventDefault();
return false;
}
});
}