Thank you for the additional details and for providing the source code. The reason for the issue is that in the select event, the files have not yet been added to the files list. You could add a setTimeout
call in the select event and execute the custom logic in it, but keep in mind that this custom modification may cause further issues e.g. the "Upload" button won't hide automatically when the files list becomes empty and the autoUpload
property is set to false.
The support way to achieve this would be to prevent the select event by calling e.preventDefault()
, but this method has a downside too - it prevents the selection of all current files.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI