aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Selecting Multiple Files For Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Selecting Multiple Files For Upload" Watch "Selecting Multiple Files For Upload" New topic
Author

Selecting Multiple Files For Upload

Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Hi;

Using apache.commons.FileUploader I have a nice little ap that allows clients to upload a pic to the server.

My problem is my clients never upload just one. Its usually between 10-40.

Right now I use a simple html form to select the file and call my upload servlet:



I could add multiple input tags, building the form dynamically based on the number of pics a client want to upload, but this would get cluttered very fast.

I'm sure someone has solved this problem. Should I embed an applet in the JSP to do this? Anyone have any tips?

Thanks,

Luke

ps: I posted this question in this section because the webpage containing this feature is generated by a JSP page.

[ May 12, 2005: Message edited by: Luke Shannon ]
[ May 12, 2005: Message edited by: Luke Shannon ]

Luke
SCJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

I posted this question in this section because the webpage containing this feature is generated by a JSP page.


I'm going to move this to the HTML forum because the fact that a JSP was used to generate the page is moot. Once it gets to the browser, it's an HTML page like any other, and there is no JSP mechansim that is applicable to this issue.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Makes sense. Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You basically are either going to have to use an applet or add multiple file upload fields. Problem with the file upload field is it contains strict security since an evil person could grab files that you would not want to be uploaded.

Eric
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Thanks. An applet might be the way to go.

This one is free from SourceForge:

http://sourceforge.net/projects/jupload/

Seems to do what I need.

Luke
[ May 12, 2005: Message edited by: Luke Shannon ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Selecting Multiple Files For Upload