Why don't you just allow a response of HttpStatusCode.Created (or OK)?
Why does the event have to get json back? I don't care about anything other than it succeed....
Even when I return exactly what you specified above the success AND error events don't fire.
Here's the response:
Content-Type
text/plain; charset=utf-8
{"status":200,"data":[{"DocumentId":"b553dbf6-5f99-4b4e-924b-a03c010c1a8c"}]}
Here's the actual script:
<input id="upProfilePhoto" name="Photo" type="file" style="width: 150px" /> <input type="button" id="btnRemoveProfilePhoto" class="k-button" value="Remove" />
<script>
$(document).ready(function () {
$("#upProfilePhoto").kendoUpload({
multiple: false,
showFileList: false,
async: {
saveUrl: "/members/profile/uploadphoto",
removeUrl: "/members/profile/removephoto",
autoUpload: true,
success: function (e) {
debugger;
$("#imgPhoto").attr("src", $("#imgPhoto").attr("src") + "?timestamp=" + new Date().getTime());
},
error: function (e) {
debugger;
}
}
});
});
</script>
Neither debugger get hit, and neither have any script errors in debug console in IE or chrome. (yes this is being run in a full web browser)