• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple File Upload using Struts

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to do a Multiple File Upload using Struts in my web app.
Its easy to do a single file upload using the FormFile.
But how do we implement for multiple file upload.

Any help will be appreciated.

Thanks
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Multiple file upload" in that the user can select a fixed number of files, or that the user can select any number of files? In the first case where you the user can select a fixed number of files you just need to put multiple FormFile properties in your form. I recall doing some research into the second case and it is not supported. As I recall, some browsers will let the user select multiple files but it is not really a supported feature and not something supported by Struts.

- Brent
 
Daniel Conner
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently had been doing research on doing multiple file uploads. I did find this address. It isn't using struts. Take a look at it though. It still may be helpful.

http://www.telio.be/blog/2006/01/06/ajax-upload-progress-monitor-for-commons-fileupload-example/
 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Daniel .

Your link is very helpful.
I am able to achive this using few changes in the ActionForm file.
Just wanted to know if this is right way of doing it ?


Thankyou.

--merrill-- Added [ c o d e ] tags
[ January 26, 2007: Message edited by: Merrill Higginson ]
 
sarvananda sarvananda
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ambika,

Any update with how you went ahead with this ?
How are you processing this approach in the action class.
I am stuck in a similar position now.


TIA
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic