I tried using an array for the file inputs with the deprecated form handling functions ($request->hasFiles(), etc) and they didn't seem to work. I may have made a mistake, so I will test again tomorrow. Thanks for the suggestion. Regards, jonathan
[EMAIL PROTECTED] wrote: > setting the field name to something with [] may solve the problem. > > That way you can recieve an array and wirte a custom validatar that > calls sffilevalidator for each item. > > Do i make sense? > > On Jun 30, 5:57 pm, Jonathan Franks <[EMAIL PROTECTED]> wrote: > >> How could one use the new form system to deal with form fields >> generated using javascript on the client side? >> >> For instance, if one wanted to allow multiple file uploads like here.... >> >> http://www.fyneworks.com/jquery/multiple-file-upload/ >> >> Ideally, each new file upload field should be validated by >> sfValidatorFile() and its file available through the sfValidatorFile() >> methods. But as we don't know the total number of files that might be >> uploaded, we can't create widgets for them and assign validators. >> >> Thanks in advance, jonathan >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---