开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜