On 22 Jul 2009, at 23:04, David Zülke wrote:

> On 22.07.2009, at 23:10, Michal Charemza wrote:
>
>>
>> On 22 Jul 2009, at 21:52, David Zülke wrote:
>>> <validator class="arraylength" source="files">
>>
>> Thanks for the suggestion. However, I've now tried this and the same
>> thing occurs. I've checked the name of the argument is indeed the one
>> in the template: apart from that I'm not sure how to investigate  
>> this...
>
> Please post your full validation config.

I have trimmed the validation config right down: so the array length  
validator is the only one present, and the issue still occurs. It is  
very similar to my first post, but for the record, it is:

<validators method="write">
        <validator class="arraylength" source="files">
                <arguments>
                        <argument>Mfile</argument>
                </arguments>
                <ae:parameters>
                                <ae:parameter name="min">1</ae:parameter>
                </ae:parameters>
                <errors>
                        <error for="min">At least one file is required</error>
                        <error>Array Length Error</error>
                </errors>
        </validator>
</validators>

And the file fields in the template are all identical:

<input type="file" name="Mfile[]" />

Michal.

Michal.
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to