This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring 3 - Multiple file upload - MultipartFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring 3 - Multiple file upload - MultipartFile" Watch "Spring 3 - Multiple file upload - MultipartFile" New topic
Author

Spring 3 - Multiple file upload - MultipartFile

sachin pachpute
Ranch Hand

Joined: Aug 05, 2004
Posts: 35
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

Joined: Aug 05, 2004
Posts: 35
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

Joined: Aug 05, 2004
Posts: 35
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

Joined: Aug 05, 2004
Posts: 35
ok.. the issue is resolved with the version update to 3.1.1

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring 3 - Multiple file upload - MultipartFile
 
Similar Threads
SimpleFormController ReferenceData not working
Javascript new window is not opening from a jsp page
Spring 3 form validation
Problem in using javascript in spring web mvc system:
spring mvc with tiles hibernate validator @valid giving error