Alaa Jabre
Alaa Jabre

Reputation: 1903

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?

Upvotes: 0

Views: 897

Answers (2)

Mohamed Badr
Mohamed Badr

Reputation: 2652

I had the same issue and turned out that

@Html.Kendo().DeferredScripts()

was accidently duplicated

Upvotes: 2

Alaa Jabre
Alaa Jabre

Reputation: 1903

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

Upvotes: 0

Related Questions