This is a migrated thread and some comments may be shown as answers.

how can i connect kendoUpload to ApiController action?

1 Answer 172 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Palanivel
Top achievements
Rank 1
Palanivel asked on 13 Sep 2012, 12:15 PM
Hello,

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

.kendoUpload working fine for Controller Upload call. 
like
"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!

1 Answer, 1 is accepted

Sort by
0
ramesh
Top achievements
Rank 1
answered on 03 Oct 2012, 10:17 AM
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.
Tags
Upload
Asked by
Palanivel
Top achievements
Rank 1
Answers by
ramesh
Top achievements
Rank 1
Share this question
or