• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File upload in struts 2

 
vikas byn
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.
 
debraj mallick
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic