Trying to upload using Kendo Upload UI with Web API

2 posts, 0 answers
  1. Melvis
    Melvis avatar
    1 posts
    Member since:
    Oct 2013

    Posted 15 Oct 2013 Link to this post

    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)
                    async: {
                        saveUrl: '/api/my/addfile',
                        autoUpload: true
                    upload: function (e) {
               = { id: $('#test').val() };
  2. T. Tsonev
    T. Tsonev avatar
    2760 posts

    Posted 17 Oct 2013 Link to this post


    As far as I understand Web API will not automatically decode multi-part (upload) requests. It's up to the developer to do that:

    I hope this helps.

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