I am trying to upload a file to the server directory from client machine. I used the following codes :
FileUpload.jsp
@RequestMapping("/upload.action")
public String upload(@RequestParam("fileData") MultipartFile file,
HttpServletResponse response,Model model)
{
//Controller logic...
}
you should have the same name in the parameter for your request handler method ,whatever you given in the FileUpload Pojo for multipartFile ("fileData") it should be in the parameter
Thanks,