Approved
Last Updated: 05 Jun 2019 09:30 by ADMIN

Reproduction of the Problem:

Dojo: http://dojo.telerik.com/@grabbi/ayiQOGoT

  • Select multiple files in Upload-Widget with not allowed extensions or filesize greater then allowed
  • Remove one File from the list (not the last one)
  • Then the upload of the next file starts

This behaivior only occures when Chunk Upload is selected and some kind of validation is activated too.

Expected behaivior:

When Removing a file the file is just removed from the list and no upload ist starting.

Code:

 

<input name="file" id="file" type="file" />

<script>

    $(document).ready(function () {

        $("#file").kendoUpload({
            async: {
                withCredentials: false,
                saveUrl: "save",
                chunkSize: 2000000,
                saveField: "files",
                autoUpload: false
            },
            validation: {
                maxFileSize: 500
            }
        });
    });

</script>

Declined
Last Updated: 16 Jan 2019 17:40 by ADMIN

If I read https://docs.telerik.com/kendo-ui/AngularJS/introduction I find “Setting Handlers through k-on Attribute” which suggests that I should be able to write `k-on-` prior to any of the events documented at https://docs.telerik.com/kendo-ui/api/javascript/ui/upload#events and automatically run under `$apply()` or `$applyAsync()`. However, when I try that, my event handler doesn’t even run at all.

I think this is an oversight.

I can reproduce this in https://dojo.telerik.com/ocESevUS which is generated from the link at https://demos.telerik.com/kendo-ui/upload/angular which uses AngularJS v1.7.2 and Kendo UI v2018.3.1017.