aspose file tools*
The moose likes Struts and the fly likes File upload in struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File upload in struts 2" Watch "File upload in struts 2" New topic
Author

File upload in struts 2

vikas byn
Ranch Hand

Joined: Mar 18, 2011
Posts: 80
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

Joined: Mar 08, 2011
Posts: 188

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

Joined: Mar 18, 2011
Posts: 80
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.
 
jQuery in Action, 2nd edition
 
subject: File upload in struts 2