clearAllFiles

Visually removes all files from the UI without issuing requests to the remove handler.

Example

<input name="files" id="files" type="file" />
<button id="clearAll" class="k-button">Clear all</button>
<script>
  $(document).ready(function() {
    $("#files").kendoUpload();

    $("#clearAll").on('click', function(e){
      e.preventDefault();

      var upload = $("#files").data("kendoUpload");
      upload.clearAllFiles();
    })
  });
</script>
In this article
Not finding the help you need? Improve this article