• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3 - Multiple file upload - MultipartFile

 
sachin pachpute
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to upload multiple files using spring 3, it is picking only the fist file. I browsed through a few posts available online but didnt get clear solution.

JSP


Bean


Controller


dispatcher-servlet



I earlier tried below in JSP but it gave me error...


 
sachin pachpute
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I referred to below posts as well and they havent done anything different.. Can't seem to find what is the issue. Can someone help please? Am I missing something?

http://www.bitspedia.com/2012/05/how-to-upload-multiple-files-using.html

http://stackoverflow.com/questions/2017807/spring-3-upload-many-files

 
sachin pachpute
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was going through Spring version changelog and noticed below line for version 3.0.4

"* WebDataBinder and @MVC request params detect and introspect MultipartFile arrays as well"

looks like I need to upgrade to latest version as i am using 3.0.1

I should have done this any ways to avoid any version issues.. lesson learnt!!!
 
sachin pachpute
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.. the issue is resolved with the version update to 3.1.1

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic