I am trying to submit a form with jQuery form plugin (http://malsup.com/jquery/form/)
my js looks like this:
var options = {
success: callback,
type: "POST",
dataType: 'multipart/form-data',
url: url
};
$('#myForm').ajaxForm(options);
$('#myForm').submit();
my controller method looks like this:
public ModelAndView processForm(MultipartHttpServletRequest request) throws Exception
I am getting this error:
(org.springframework.web.multipart.MultipartHttpServletRequest) throws
java.lang.Exception]; nested exception is java.lang.IllegalStateException: Current
request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest]:
What am I doing wrong?
MultipartResolverconfigured in the spring configuration