Hi,
My requirement is to allow user to upload only one file at a time. But looks like Kendo hasn't got an out of box solution to this. 'Select files..' button is active after user has uploaded a file and it allows further any number of uploads and the same is with drop zone.
It is disappointing that the 'multiple:false' doesn't work if I use the 'upload' event. So I had to do a workaround to this such that user can select only one file.
Now my problem is to disable drop zone after user has uploaded one file. This seems to be very difficult to get it working. so I concluded to disable the drop zone completely as I am happy with the 'Select' button.
In this saga I found this thread http://www.telerik.com/forums/disable-drag-drop#2293863 and tried to use this line 'kendo.ui.Upload.fn._supportsDrop = function() { return false; }' exactly as stated in the thread. But it never worked and resulted with a javascript error on my console window. Please see the attached screenshot for the error and my code snippet.
Please help me how to disable the drop zone completely
PS: I am using this Upload control in an MVC project & using Kendo 2017 version