How to see the request variables or files sent from the phonegap to MVC asp.net Controller
I have done coding
public JSONResult media(HttpPostedFileBase file)
{
=====done with some code===
}
Here i m getting the file as null always. Note: file is the file submitted from the Phonegap's JSON method.
My que开发者_如何转开发stion is : Is there any mechanism for the decoding the encoded multipart file before reading?
Got it :)
Use the request params for getting the file input and changed the method as
public JSONResult media()
added request.files and stored in HTTPcollectionfile base and got the same file information posted in the PhonegapAPI
精彩评论