Kendo UI MVC Upload in IE & Windows Authentication

13 posts, 0 answers
  1. David Hruby
    David Hruby avatar
    1 posts
    Member since:
    Oct 2006

    Posted 13 Sep 2013 Link to this post

    Hello, I have a problém with Kendo UI MVC Upload component, which doesn't work correctly in IE10 when using Windows authentication. The result is this: http://screencast.com/t/jw7Ph3MNfm.

    The actions are not called for these files, because of 401 error. In Chrome everything works as expected and all actions are correctly called for all files. And when I turn off Windows authentication, everything works ok in IE too.

    Is there any solution to this problém? I've found this http://stackoverflow.com/questions/18626258/ie-11-or-10-kendo-ui-file-upload-will-not-upload-unless-i-refresh-the-page-ct, but it doesn't seem to work.

    Thank you.

    Best regards
    Ondra Burisin
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 17 Sep 2013 Link to this post

    Hi David,


    I tried to reproduce the issue on my side by enabling the windows authentication and applying the Authorize attribute to the Save and Remove actions. Everything is working as expected with the following configuration.
    E.g.
    [Authorize(Users = @"...")]
    public ActionResult Save(IEnumerable<HttpPostedFileBase> files)
    { ... }
     
    [Authorize(Users = @"...")]
    public ActionResult Remove(string[] fileNames)
    { ... }

    Could you please let me know if I am testing with the correct setup? If that is not the case, please send me a small sample runnable project, where the issue is reproducing so I could inspect it locally and assist you further?

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. David Hruby
    David Hruby avatar
    1 posts
    Member since:
    Oct 2006

    Posted 17 Sep 2013 Link to this post

    Hello Dimiter,

    please see the attachments, the image shows the result of performing upload of multiple files. For all the files that have strange percentage numbers, the controller's action is not even called.

    Thank you
    Ondra Burisin
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 19 Sep 2013 Link to this post

    Hello David,


    We tested the project and tried to reproduce the issue on several machines with IE 10, under localhost and over the network, but did not manage to reproduce the behavior from the provided screencast. We were using IIS 7.5 for the purposes of the test. Could you please specify which web server are you using on your side and which version? Is the issue reproducing on localhost or in production? A possible reason for the problem could also be a proxy server. Is there such in the configuration on your side? 

     

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. David Hruby
    David Hruby avatar
    1 posts
    Member since:
    Oct 2006

    Posted 26 Sep 2013 Link to this post

    Hello Dimiter,

    thanks for response. I got to another testing to make sure, that we have Authorize attribute in place and all the settings right. I made a short video of the problem here: http://screencast.com/t/haxdTRuhFb

    Our configuration is as follows:
    MVC4 application
    jQuery (1.9.1)
    Kendo 2013.2.716 (also tried the new SP1 2013.2.918)

    Visual Studio 2012, using local IIS Express and you can see the content of web.config as well as configuration of the project in the video. Moreover we tried full IIS7.5 as well, but the result was the same.
    Browser is IE 10.0.9200.16686

    There is no proxy server or something else and the strangest thing is, that it works well in Google Chrome and it also seems to work on subsequent refreshes of the page. For files that have over 100% upload, the action method Save never gets called.

    Best regards
    Ondrej Burisin
  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 30 Sep 2013 Link to this post

    Hi David,


    Thank you for the additional information about the current configuration and the screencast. After further testing we managed to reproduce the issue in IE 10 under localhost, when multiple files are sent simultaneously. Nevertheless the issue is not reproducible, when the application is hosted on full IIS and the site is not opened through localhost, but through the server name over the network. If you would like to support the localhost scenario, I would suggest you to enable the batch option of the async upload, which will force the files to be uploaded in a single request.

    Please let me know if this information was helpful for you.

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. PANW
    PANW avatar
    1 posts
    Member since:
    May 2013

    Posted 18 Jun 2014 Link to this post

    Hello Dimiter,

    We have exactly the same problem as the above. Please see the attached error file.(Screenshot was from FF)
    Upload works as expected in Chrome. We have the problem in IE too.
    What's strange is that it works sometimes and sometimes not. But we have never seen this issue in localhost scenario, only in the server.

    Our configuration:
    MVC4 application(Windows Authentication)
    jQuery (1.9.1)
    Kendo 2014.1.318.440
    IIS 8.0

    David,
       Did you get this work? Or do you find any workaround solution for the problem?

    Thanks,
    Gayathri 

















  9. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 20 Jun 2014 Link to this post

    Hello,

    This is an interesting development, as we considered this issue limited to localhost deployment.
    Does the upload succeed eventually, despite the incorrect progress info?

    The original thread on StackOverflow seems to contain a solution that relies on a kind of "preflight" request. Perhaps this is worth giving a try.

    We'll try to follow up on this issue with Microsoft on Connect.

    Regards,
    T. Tsonev
    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.

     
  10. Arnaud Vallette
    Arnaud Vallette avatar
    4 posts
    Member since:
    Aug 2009

    Posted 31 Aug 2015 in reply to T. Tsonev Link to this post

    Hello,

        

  11. Arnaud Vallette
    Arnaud Vallette avatar
    4 posts
    Member since:
    Aug 2009

    Posted 31 Aug 2015 in reply to Arnaud Vallette Link to this post

    Hello,

     I'm still having the same issue at the moment, from my personal project with latest stable versions, but also from the demo website itself. After multiple files are added , the component suddendly stops to work

    I'm using IE11 (see the attached picture)

    Thanks in advance for your help

  12. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 31 Aug 2015 Link to this post

    Hello Arnaud Vallette,

    At the moment there is still no official fix provided for Internet Explorer 11. If such is released, we will document it at the Upload troubleshooting page.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  13. ss
    ss avatar
    6 posts
    Member since:
    Jan 2015

    Posted 10 Mar in reply to Dimiter Madjarov Link to this post

    We are using Telerik.Upload(), using windows authentication, from IE11/10  fails to upload in the load balancer . With a single server it works fine. Is there a workaround?

  14. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 11 Mar Link to this post

    Hello ss,

    No, currently there is no workaround. This issue is related to Internet Explorer's handling of multiple requests in the current scenario, and not the Upload widget specifically.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready