removeAllFiles
Removes all files by sending a standard remove
request to the handler.
The invoking of the
removeAllFiles
method does not trigger theremove
event.
Example
<input name="files" id="files" type="file" />
<button id="removeAll" class="k-button">Remove all</button>
<script>
$(document).ready(function() {
$("#files").kendoUpload({
async: {
autoUpload: false,
saveUrl: "http://my-app.localhost/save",
removeUrl: "http://my-app.localhost/remove"
}
});
$("#removeAll").on('click', function(e){
e.preventDefault();
var upload = $("#files").data("kendoUpload");
upload.removeAllFiles();
})
});
</script>