You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eva Plaza <ev...@indelible.tv> on 2002/07/16 17:11:40 UTC

enctype= multipart form, validation errors, file is lost

I think my original message was lost - please excuse if you receive this
twice:
 
 
 
Hello Everyone,
 
 I am having trouble with a multi-part form, using Struts 1.1b-1 and Tomcat
4.0. I had seen some older messages on the list archives (1yr+ old), but I
was wondering if  anyone has a more recent solution.
 
 When a string field fails validation, even after supplying a valid
multi-part(file) for upload, the stack trace that comes out to the browser
includes this message: "javax.servlet.ServletException: MultipartIterator: no
multipart request data sent".
 
The same form, when all the fields are valid, executes with no problem. It's
just that the file that is being uploaded is lost when a different field
fails struts validation.
 
Does anyone have the same problem? If so, what did you do about it? 
 
Thanks very much,
 Eva
 

Re: enctype= multipart form, validation errors, file is lost

Posted by Andreas Mack <va...@mediales.net>.
On Tue, 2002-07-16 at 17:11, Eva Plaza wrote:

> The same form, when all the fields are valid, executes with no problem. It's
> just that the file that is being uploaded is lost when a different field
> fails struts validation.
>  
> Does anyone have the same problem? If so, what did you do about it? 

I gave up and split the process in several parts, starting with the file
only and then asking for the rest of the information I need for the file
in a subsequent form. Not optimal, but good enough for me.

-- 
Andreas Mack <va...@mediales.de>
mediales. GmbH http://www.mediales.de



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>