Disabled Upload

2 posts, 0 answers
  1. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 08 Feb 2013 Link to this post

    Hello,

    When I disable the upload control with upload.disable(), the button is indeed disabled, but I can still drag and drop files. I think drag and drop should also be disabled?

    Regards, Jaap
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 12 Feb 2013 Link to this post

    Hello Jaap,

    Thank you for noticing this issue in Kendo Upload. We will fix it as soon as possible. As a small sign of gratitude I am adding Telerik points to your account.

    As a temporary workaround I would suggest you to attach to the drop event of the input and prevent the default behavior.
    E.g.

    $("#files").data("kendoUpload").enable(false);
     
    $("#files").on('drop', function(event) {
        event.preventDefault();
    });
      All the best,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top