Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy