Edit this page

pause

Pauses the upload of a file that is uploaded in chunks.

Example

<input name="files" id="files" type="file" />
<button id="pause" class="k-button">Pause</button>
<script>
  $(document).ready(function() {
    $("#files").kendoUpload({
       async: {
        chunkSize:1100,
        autoUpload: false,
        saveUrl: "http://my-app.localhost/save",
        removeUrl: "http://my-app.localhost/remove"
      }
    });

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

      var upload = $("#files").data("kendoUpload");
      var fileEntry = upload.wrapper.find(".k-file").first();

      upload.pause(fileEntry);
    })
  });
</script>

Parameters

li jQuery

A jQuery object which represents the file that will be paused.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy