Hey all:
I was able to figure this out if anyone is interested. It turns out it is pretty straight forward to do. I wasn't using the MultiHttpServletRequets correctly.
Here is the code of the method that is used to process the uploaded files (note: this is just test code that I've been playing around with so it needs some fixing, but it'll get you up and running):
Code:
public ModelAndView upload(HttpServletRequest request, HttpServletResponse response) throws Exception {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
MultiValueMap<String, MultipartFile> map = multipartRequest.getMultiFileMap();
if(map != null) {
Iterator iter = map.keySet().iterator();
while(iter.hasNext()) {
String str = (String) iter.next();
List<MultipartFile> fileList = map.get(str);
for(MultipartFile mpf : fileList) {
File localFile = new File("c:\\temp\\" + StringUtils.trimAllWhitespace(mpf.getOriginalFilename()));
OutputStream out = new FileOutputStream(localFile);
out.write(mpf.getBytes());
out.close();
}
}
}
return null;
}
Best,
H.