"This class handles multiple files per single HTML widget, sent using multipart/mixed encoding type, as specified by RFC 1867."
http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/DiskFileUpload.html
Jon
----- Original Message ----- From: "Eric Wahlforss" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Wednesday, March 30, 2005 4:12 AM
Subject: Re: <x:inputFileUpload - How to upload multiple files at once?
I really don't think there is a possibility to use the standard <input type="file"/> to upload several files at once.
What gmail does is simply several <input type="file"/> boxes inserted dynamically with javascript.
you still have to click browse and select each file individually for each upload-box...
you can submit several files with one post though (using several file-upload fields, which again is what gmail does)
//eric
On 2005-03-30, at 04.39, Heath Borders wrote:
You can't use javascript to prompt for the files, unfortunately. If fact, if you re-post, that field blanks out.
On Tue, 29 Mar 2005 19:21:12 -0600, Aaron Bartell <[EMAIL PROTECTED]> wrote:My guess is that this is what the guy wants except not built with a Java Applet
http://jupload.biz/en_10.html (I like this one the best) http://www.javazoom.net/applets/jclientupload/jclientupload.html http://www.radinks.com/upload/
The gmail one is still a lot of work for the end user because if they want to upload multiple files they have to do so with separate "Browse" buttons when it would be really nice to be able to select multiple files at once.
I would love to have a MyFaces UI component for this, but I am not sure how one would do this from the client end unless you could use JavaScript to prompt for the files (sadly I am no JavaScript wiz).
Aaron Bartell
Deadman, Hal wrote:
Has anyone looked into how the Gmail "attach a file" link works? They
don't seem to display an <input type="file"> control (unless it's
heavily modified via css) and they let you attach an arbitrary number of
files fairly easily albeit with multiple invocations of the Choose File
dialog.
I suspect if there was any way to make the "Choose file" dialog select multiple files in a single invocation then the gmail developers would have done it.
The gmail file upload interface would make a nice JSF control if it is not out there already.
-----Original Message----- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:39 PM To: MyFaces Discussion Subject: RE: <x:inputFileUpload - How to upload multiple files at
once?
Heath,
I'll debate that. I recall a Struts posting where someone made a
custom
class to detect and process multiple files in a SINGLE file upload
field.
But, we're not Struts, are we? LOL.
Regards, David
-----Original Message----- From: Heath Borders [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:33 PM To: MyFaces Discussion Subject: Re: <x:inputFileUpload - How to upload multiple files at
once?
I don't think that the HTML element <input type="file"> supports multiple files. I think you can only select a single file.
On Tue, 29 Mar 2005 17:02:59 -0600, Jonathan Eric Miller <[EMAIL PROTECTED]> wrote:
I'm guessing he's talking about doing it with a single component. I
think in
theory, it is possible to do this (assuming I was reading the commons-fileupload documentation correctly) using an <input
type="file"/>.
However, if I remember correctly, the MyFaces component didn't look
like
it
supported that. If I remember correctly, it looked like it assumed
that
one
file was being uploaded. I never tested it with multiple files.
Jon
----- Original Message ----- From: "Heath Borders" <[EMAIL PROTECTED]> To: "MyFaces Discussion" <[email protected]>;
"Victor
Gomez"
<[EMAIL PROTECTED]> Sent: Tuesday, March 29, 2005 4:19 PM Subject: Re: <x:inputFileUpload - How to upload multiple files at
once?
Do you mean using more than one <x:inputFileUpload /> or using a single <x:inputFileUpload />?
On Tue, 29 Mar 2005 17:10:48 -0500, Victor Gomez
<[EMAIL PROTECTED]>
wrote:
Is there a way to upload multiple files using the
x:inputFileUpload
component? Any directions/suggestions are welcomed. Thank you.
-- -Heath Borders-Wing [EMAIL PROTECTED]
-- -Heath Borders-Wing [EMAIL PROTECTED]
-- -Heath Borders-Wing [EMAIL PROTECTED]
-------------------------------------------- Eric Wahlforss http://eric.wahlforss.com/ [EMAIL PROTECTED] +46 70 363 99 00 jabber: [EMAIL PROTECTED] skype, aim: ericwahlforss --------------------------------------------

