You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@pingsite.com> on 2006/03/08 16:15:05 UTC

Re: [help] examples of multi files upload

Praveen Kumar wrote:
>   You have to use applet for that 
>   


Why? I'm uploading multiple files under Struts w/ no difficulties.

Dave



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


Re: [help] examples of multi files upload

Posted by Pham Anh Tuan <an...@ichi-corp.jp>.
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" <br...@tariffenet.it>
To: "Struts Users Mailing List" <us...@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: 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


Re: [help] examples of multi files upload

Posted by Antonio Petrelli <br...@tariffenet.it>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [help] examples of multi files upload

Posted by Dave Newton <ne...@pingsite.com>.
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



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


Re: [help] examples of multi files upload

Posted by Antonio Petrelli <br...@tariffenet.it>.
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!
Ciao
Antonio

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