pause

Fires when the files are cleared by clicking the Pause button. The button is visible if chunksize is set.

Example - wiring up an event handler that triggers when a user clears selects files

<input type="file" name="files" id="photos" />
<script>
    $("#photos").kendoUpload({
        async: {
            saveUrl: "http://my-app.localhost/save",
            removeUrl: "http://my-app.localhost/remove",
            autoUpload: false
        },
        pause: onPause
    });

    function onPause(e) {
        // Optionally pauses the clear operation by calling the preventDefault method
        e.preventDefault();
    };
</script>

Event Data

e Object

A custom event object. The event can be canceled similar to a standard jQuery event object by using e.preventDefault();.

In this article