re upload the selected files on error

2 posts, 0 answers
  1. Daniele Bruno
    Daniele Bruno avatar
    22 posts
    Member since:
    Apr 2009

    Posted 09 Sep 2015 Link to this post


    I am trying to create a custom button "Reupload" for kendo upload. The button should reulodad selected files in case of error during the previous upload.

    somthing like this:


         , error: function (e) {
                if ((e.XMLHttpRequest.status != null) && (e.XMLHttpRequest.status == 500))

                    $("#reupload_btn).click(function () {  





    It's possible to create a similar behavior?

     My version of kendo UI is v2014.1.416.


  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2312 posts

    Posted 09 Sep 2015 Link to this post

    Hello Daniele Bruno,

    When the uploading of the file has failed, the widget automatically renders a retry button. You could trigger it's click event to achieve the required behavior. Here is an example that demonstrates the approach.

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top