Problems with Upload widget in MVC with IE7

2 posts, 0 answers
  1. Berry
    Berry avatar
    1 posts
    Member since:
    Jun 2011

    Posted 19 May 2014 Link to this post

    This code works properly in IE8+, but in IE7 it uploads the file twice:

    @(Html.Kendo().Upload()
        .Name("uploadFile")
        .Multiple(false)
        .Async(save => save
                                  .Save("DoSomething", "SomeController", new { ... })
                                  .AutoUpload(true))
          .Events(events => events 
                      .Upload("...")
                      .Success("...")
                      .Error("..."))
    )

    I also can't disable the upload widget via this command because $("#uploadFile").data("kendoUpload") returns undefined:
         $("#uploadFile").data("kendoUpload").disable();

    My Kendo.Mvc version is v4.0.30319.

    Any ideas?
    Thanks!
    --Berry
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 20 May 2014 Link to this post

    Hello Berry,


    There is a browser bug in Internet Explorer 7 related to similar scenario i.e. the change event of the input type file elements is fired a second time on blur. Since the Upload widget is using the change event to track file selection, the file is showing twice in the list. Nevertheless in the case when the multiple option is set to false, I am unable to reproduce it.

    As for the second issue, the widget is disabling as expected on my side.

    In order to assist further, could you please send me a small isolated example, which demonstrates the described problems? I am looking forward to hearing from you.

    Regards,
    Dimiter Madjarov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top