playframework 2.0 - Kendo Upload not showing successful in Play 2.2.2 -


i have kendo file upload call, here function:

  $("#fileupload").kendoupload({     async: {         saveurl: "/people",         autoupload: true     },     multiple: false,     complete: oncomplete });  function oncomplete(e) {     // upload idle     datasourceperson.read(); } 

this calls play routes file triggers method in controller:

  public static result create() {      // stuff      return ok("successfully loaded new users");   } 

my problem upload box shows failure , retry option though upload success. should create() method return?

i figured out, needed respond with:

  return ok("{\"status\":0}"); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -