This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring 3 - Multiple file upload - MultipartFile

 
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

 
Let's get him boys! We'll make him read this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic