Search code examples
kendo-uikendo-upload

Kendo upload is duplicating the first file


I have a kendo upload with default implementation.

@Html.Kendo().Upload().Name("imageUpload").Multiple(true).Events(e => e.Select("selectFile"))

the first file I select to upload is getting duplicated I tested this on all browsers duplicated file
I set the select event to this js function

function selectFile() {
        console.log(this.element[0]);
    }

the result was this: duplicated file console As I mentioned this happens only to the first file the rest will go normally
any idea why is this happening?


Solution

  • I didn't mention I'm using jQuery-Steps plugin because I didn't think it would be related.
    apparently there is a conflict between some controls and jQuery-steps.
    I needed to initialize the steps after kendo control is initialized
    I found the answer here:
    jquery-steps-plugins-conflict-with-ckeditor