I am trying to use Kendo Upload UI with Web API. I have the below signature in my web api controller, but somehow the POST is not working. It works fine with
MVC controller, but I need it to work with Web API. I also include the call made from the UI.
public void AddFile(IEnumerable<HttpPostedFileBase> files, string id)
{
}
$("#files").kendoUpload({
async: {
saveUrl: '/api/my/addfile',
autoUpload: true
},
upload: function (e) {
e.data = { id: $('#test').val() };
}
});
MVC controller, but I need it to work with Web API. I also include the call made from the UI.
public void AddFile(IEnumerable<HttpPostedFileBase> files, string id)
{
}
$("#files").kendoUpload({
async: {
saveUrl: '/api/my/addfile',
autoUpload: true
},
upload: function (e) {
e.data = { id: $('#test').val() };
}
});