struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@pgmsystems.com
Subject RE: Multiple file uploads
Date Fri, 16 Apr 2004 12:19:02 GMT





We have handled a situation like this by giving the user the option to
upload a single file or a zip/jar file of multiple files and the providing
a checkbox for them to indicate if the file should be extracted or not.  Of
course this approach depends on the user having the ability to zip/jar a
file and may not be possible in some cases.  Just another idea for you.

Amy



                                                                           
             "Andrew Hill"                                                 
             <andrew.david.hil                                             
             l@gridnode.com>                                            To 
                                       "Struts Users Mailing List"         
             04/16/2004 03:00          <user@struts.apache.org>            
             AM                                                         cc 
                                                                           
                                                                   Subject 
             Please respond to         RE: Multiple file uploads           
               "Struts Users                                               
               Mailing List"                                               
             <user@struts.apac                                             
                  he.org>                                                  
                                                                           
                                                                           




Search the archive and you will find I have explained a technique that
involves the use of a single FormFile setter, a session scoped form, and a
list, with the user uploading 1 file at a time to the field, submitting it,
and being returned to the form with a list of files uploaded so far and a
box to upload the next one...

btw:
You arent necessarily limited by compile considerations as you could put
the
FormFile property on a nested bean in a collection... (but uploading 100s
of
files in one single shot is not going to be fun for the user!)

-----Original Message-----
From: Andrew Stevens [mailto:andrew.stevens@gsjbw.com]
Sent: Friday, 16 April 2004 13:37
To: 'struts-user@jakarta.apache.org'
Subject: Multiple file uploads



Hi,

I've read various threads on this mailing list about uploading files, and
uploading MULTIPLE files. There seems to be some shortcomings.
Especially as I want to offer a theoretically infinite number of file
uploads in one form. 0 to 5 files is realistic. But I don't want to limit
it.

My understanding is that I will have to limit this because for each file
I'll need a getter and setter in my ActionForm.
ie: setFile1() setFile2() setFile3().

So... the compile of my ActionForm creates a limit on the number of files
able to be uploaded.

Is there no other way to do this?

Thanks in advance,
AS


GOLDMAN SACHS JBWERE PTY LTD DISCLAIMER

Goldman Sachs JBWere Pty Ltd and its related entities distributing this
document and each of their respective directors, officers and agents ("the
Goldman Sachs JBWere Group") believe that the information contained in this
document is correct and that any estimates, opinions, conclusions or
recommendations contained in this document are reasonably held or made as
at
the time of compilation.  However, no warranty is made as to the accuracy
or
reliability of any estimates, opinions, conclusions, recommendations (which
may change without notice) or other information contained in this document
and, to the maximum extent permitted by law, the Goldman Sachs JBWere Group
disclaims all liability and responsibility for any direct or indirect loss
or damage which may be suffered by any recipient through relying on
anything
contained or omitted from this document.

Goldman Sachs JBWere does not represent or warrant the attached files are
free from computer viruses or other defects.  The attached files are
provided, and may only be used, on the basis that the user assumes all
responsibility for any loss, damage or consequence resulting directly or
indirectly from use.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message