This is a migrated thread and some comments may be shown as answers.

Disabled Upload

1 Answer 300 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jaap
Top achievements
Rank 2
Jaap asked on 08 Feb 2013, 12:26 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 12 Feb 2013, 09:16 AM
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!
Tags
Upload
Asked by
Jaap
Top achievements
Rank 2
Answers by
Dimiter Madjarov
Telerik team
Share this question
or