I have a problem that I encountered and was wondering if anyone else had encountered it.
The problem is we want to do AJAX uploads on our MVC site. Our JS library of choice is jQuery. With that said we are using the jQuery form plug-in to handle the AJAX post, which is working. The issue we are having is when returning the call as Json, it is not parsing the Json correctly. Now I know this is the MVC forum, not the jQuery forum, but I am hoping that someone else out there has encountered this as well and what their solution was. We finally gave up on a Json return and now send a simple string back for parsing in the success callback. What is really weird is we use the jQuery $().ajax call in several places, all getting Json results and all working.
How are people doing AJAX file uploads with asp.net mvc? Any suggestions, approaches, pit falls?
- Alec Whittington
View Complete Post