toggle

Toggles the enabled state of the Upload.

Example

<input type="file" name="files" id="upload" />
<script>
    // The Upload is disabled when initialized
    $("#upload").kendoUpload({
        enabled: false
    });

    var upload = $("#upload").data("kendoUpload");

    // Toggles the enabled state of the Upload
    upload.toggle();
</script>

Parameters

enable Boolean

(Optional) The new enabled state of the Upload.

In this article