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

Remove Files with Confirmation Dialog

The following example demonstrates how to display a custom confirmation dialog by utilizing the kendo.confirm() method.

    <input name="files" id="files" type="file" />

      $(document).ready(function() {
         var fileUidToRemove = "";

            async: {
              autoUpload: false,
              saveUrl: "save",
              removeUrl: "remove",
              withCredentials: false
            remove: function(e) {
              fileUidToRemove = e.files[0].uid;

              kendo.confirm("Remove the file?").then(function(){

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