You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Wielgus <li...@o2.pl> on 2004/01/12 11:03:17 UTC

Form validation problem

Hello,

I'm trying to validate a form for uploading files using the form
validation action. Normally it works correctly, but if I use the
parameter 'enctype = "multipart/formdata"' in the form definition
(and I have to use it as I want to upload the file) every time it
looks like the input were invalid. What's the problem? Or maybe is
it a bug?

My sitemap fragment looks like this:

<map:pipeline>
<map:match pattern="valid-test">
<map:act type="form-validator">
<map:parameter name="descriptor"
value="resources/descriptors/uploaddescriptor.xml"/>
<map:parameter name="validate-set" value="transformation"/>
<map:generate type="serverpages" src="validtest/ok.xsp"/>
<map:transform src="validtest/test.xsl"/>
<map:serialize/>
</map:act>
<map:generate type="serverpages" src="validtest/fail.xsp"/>
<map:transform src="validtest/test.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org