I was sending this via AJAX:
var formData = new FormData();
var totalfiles = document.getElementById('files').files.length;
for (var index = 0; index < totalfiles; index++) {
formData.append("files", document.getElementById('files').files[index]);
}
And with my Spring 4 application, it should have been received by this method:
@RequestMapping(value = "/mapUploads/submit", method = RequestMethod.POST)
protected void check(HttpServletRequest request, List<MultipartFile> files)
But for some reason, Spring 4 was telling me that the bean could not be instantiated:
java.lang.NoSuchMethodException: org.springframework.web.multipart.MultipartFile
In debugging mode, it wasn't even entering the method parameter.