Quickform, multiple upload problem
| From: | Louie Miranda | Date: | Mon, 19 Mar 2007 05:20:34 +0000 |
| Subject: | Quickform, multiple upload problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26873@lists.php.net to get a copy of this message | ||
http://i32.photobucket.com/albums/d41/lmiranda723/qf_upload_problem.jpg
That is what is being displayed using this code..
$form->addElement('file', 'userfile[]', array('Upload file:', 'Rule types:
\'uploadedfile\', \'maxfilesize\' with $format = 10240, \'mimetype\' with
$format = \'text/xml\''));
$form->addElement('file', 'userfile[]', array('Upload file:', 'Rule types:
\'uploadedfile\', \'maxfilesize\' with $format = 10240, \'mimetype\' with
$format = \'text/xml\''));
$form->addElement('file', 'userfile[]', array('Upload file:', 'Rule types:
\'uploadedfile\', \'maxfilesize\' with $format = 10240, \'mimetype\' with
$format = \'text/xml\''));
$form->addRule('userfile[]', 'Upload is required', 'uploadedfile');
Im using multiple upload scheme on an array using userfile[], i was hoping
to validate only the first userfile[], but when i use this approach. It
tries to validate everything. :( . Would it be possible to validate only the
first userfile[] and make the others optional?
--
Louie Miranda (lmiranda@gmail.com)
http://www.axishift.com
//JSM-W