New to Kendo UI for jQuery? Download free 30-day trial

Remove Files with Errors

The following example demonstrates how to remove files which contain errors and which have not passed the validation by using the Kendo UI Upload.

  html {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
<input name="files" id="files" type="file" />
  function onError(e) {
    var files = e.files;
    for (var i = 0; i < files.length; i++) {
      alert("Validation failed for " + files[i].name);

      var uid = files[i].uid;
      var entry = $(".k-file[data-uid='" + uid + "']");
      if (entry.length > 0) {

  $(document).ready(function() {
      async: {
        saveUrl: "save",
        removeUrl: "remove",
        autoUpload: true
      error: onError

See Also

For more runnable examples on the Kendo UI Upload widget, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article