NYCPHP Meetup

NYPHP.org

[nycphp-talk] multiple file uploading

Mitch Pirtle mitchy at spacemonkeylabs.com
Tue Mar 2 11:26:10 EST 2004


Mitch Pirtle wrote:

> $form->addRule('myfile', 'Required', 'uploadedfile', NULL, 'client');
> $form->addRule('myfile', 'Required', 'uploadedfile', NULL, 'client');
> $form->addRule('myfile', 'Required', 'uploadedfile', NULL, 'client');
> $form->addRule('myfile', 'Required', 'uploadedfile', NULL, 'client');
> $form->addRule('myfile', 'Required', 'uploadedfile', NULL, 'client');

Whups, forgot to correct the names of the elements to 'file1', 'file2', etc.

Also note that HTML_QuickForm can enforce mimetype checks, size 
constraints...  Take a look at the documentation for examples.

-- Mitch



More information about the talk mailing list