Win a copy of Microservices in Action this week in the Web Services 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!