Hi All,
I have a form with some input elements along filefield. I followed the example mentioned in 'Form Post with Upload' example and see the file is uploaded as expected.
But the example doesn't mention on reading other form data that is submitted.
I am reading the submitted form data by calling getParameter on HttpServletRequest and got it working as expected.
Is there any other way I can map the form data to a bean as shown below
@ExtDirectMethod(value = ExtDirectMethodType.FORM_POST)
public ExtDirectFormPostResult saveDocument(@RequestParam("fileUpload") MultipartFile fileUpload,@RequestBody FormDataVo formDataVo) throws Exception {...}
Right now the above method is not invoked and an exception is thrown something like below
'org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'multipart/form-data;boundary=----WebKitFormBoundary' not supported'
Thanks,
Madan N