This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

File upload in struts 2  RSS feed

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am uploading file using struts2 but seems to upload one file at a time. is file upload process is single threaded in struts2? if yes then how can i make it multi-threaded.

in my case, file size is large upto 500 MB.
 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi vikas,

default is 2mb, use this code in your struts.xml to upload file upto2Gb,

regarding multiple file upload:
http://www.coderanch.com/t/447857/Struts/multiple-file-upload-Strut

tut:
http://www.mkyong.com/struts2/struts-2-upload-multiple-files-example/
 
vikas byn
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

debraj mallick wrote:hi vikas,

default is 2mb, use this code in your struts.xml to upload file upto2Gb,

regarding multiple file upload:
http://www.coderanch.com/t/447857/Struts/multiple-file-upload-Strut

tut:
http://www.mkyong.com/struts2/struts-2-upload-multiple-files-example/



I think you get this from my old posts. But now i changed it to 500 MB.

My issue is not that you think. My Issue is - Multiple users upload large files at same time But it seems that it is uploading one file at a time.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!