This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help Regarding file upload Spring MVC portals

 
Vas Miriyala
Ranch Hand
Posts: 114
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing fileupload in Spring MVC portals.I read the documentation but it didn't worked for me.The thing is that I am getting File name but not able to get the content .I used enctype="multipart/form-data" ,can some body tell me any idea why I am not getting file content and if check the getting file is whether type of File or not,its returning false,so i am guessing that i am not at all getting file and content,getting just name.can some body help me out from this issue...
 
Vas Miriyala
Ranch Hand
Posts: 114
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing is that we need to type cast the ActionRequest object into multipartActionRequest and then get the uploaded files from multipartActionRequest Object.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!