0

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?

Alaa Jabre
  • 1,843
  • 5
  • 26
  • 52

2 Answers2

2

I had the same issue and turned out that

@Html.Kendo().DeferredScripts()

was accidently duplicated

Mohamed Badr
  • 2,562
  • 2
  • 26
  • 43
  • Yea based on the symptom one thing or another is duplicated. For me I was setting the `localization` to set the Select text in the `$(document).ready` which essentially initializing the Upload control twice – sonyisda1 Nov 12 '19 at 20:05
0

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

Community
  • 1
  • 1
Alaa Jabre
  • 1,843
  • 5
  • 26
  • 52