Hi all,
yep, I'm looking for a solution to upload muti files at one time.
I have a form with 3 <input type="file"...>, and FormBean like below:
FormFile upload1;
FormFile upload2;
FormFile upload3;
and in reset() method, I set upload1 = null, do the same thing for upload2
and upload3.
and get/set method for each properties ...
I have a Action, in that Action, I tested upload1, upload2, upload3 in
order, If there's any errors, this action will return mapping.findforward()
to the form with the error messages.
Test:
Firstly, I submit the form only with upload2, errors occur(ex: size limit),
back to the form with error message of upload2.
Secondly, I submit the form only with upload3, errors occur (ex:size limit),
back to the form with error message of upload2.
there's something wrong, maybe FormFile upload2 still in the memory, I don't
know what's wrong :(, so, I need a example for uploading muti files at one
time :|
help me, plz
Pham
----- Original Message -----
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, March 08, 2006 11:44 PM
Subject: Re: [help] examples of multi files upload
Dave Newton ha scritto:
Antonio Petrelli wrote:
Dave Newton ha scritto:
Why? I'm uploading multiple files under Struts w/ no difficulties.
Really? Are you meaning more that one file at a time?
It it is so, please share your solution!
What problems are you having? I didn't do anything interesting; I have
two FormFiles in my DynaForm and just process them both.
Dave
I think (maybe I am wrong....) that the original request meant another
thing: selecting more than one file at a time (or possibly a directory)
and then uploading it all.
It is not having two or more <input type="file">'s
Again, maybe I did not understand the original request. Hey Pham, what did
you mean by "multiple file upload"?
Ri-ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]