On 23.07.2009, at 09:30, Michal Charemza wrote:
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 samething occurs. I've checked the name of the argument is indeed the onein 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[]" />
And what is the issue? That you cannot access the individual files? That would be expected. Or are you getting "Array Length Error"? Does your <form> have enctype="multipart/form-data"?
- David
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
