how can i connect kendoUpload to ApiController action?

2 posts, 0 answers
  1. Palanivel
    Palanivel avatar
    1 posts
    Member since:
    Sep 2012

    Posted 13 Sep 2012 Link to this post


    I'm using MVC 4, and the KendoUI Upload widget.

    .kendoUpload working fine for Controller Upload call. 
    "public ActionResult UploadImage(HttpPostedFileBase files, string title) { }".

    How can i upload files using Web-ApiController?
    (ie) how can i connect "kendoUpload" to "ApiController" action?
    Is it possible?

    Thanks in advance!

  2. ramesh
    ramesh avatar
    1 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2012 Link to this post

    you can upload file with APIcontroller but the file should not save with extension. while retrieving the file set the file property like extension header etc. With APIcontroller The file uploded and saved correctly with extension and size but it is coming corrupted.

    For Image upload with extension I used Controller instead of APIController.
Back to Top