FormBuilder file uploads validation

From: Date: Mon, 07 Aug 2006 12:20:44 +0000
Subject: FormBuilder file uploads validation
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24841@lists.php.net to get a copy of this message
Hello, I've probably messed up something but I cannot understand why when DAO->validate() is called before insert or update the DO values for file fields are not filled. How could I validate a file name against a certain pattern? Say I want the user upload only files with .pdf extension (I know this is not a guarantee of having a PDF inside, but it's enough for now). Note that all non-file fields are corrected filled up with new submitted values. Thanks in advance. here is a stack trace: 9 HTML_QuickForm->process() /home/www/SIGEdit.php:233 10 call_user_func () /usr/share/php/HTML/QuickForm.php:1601 11 DB_DataObject_FormBuilder->processForm() /usr/share/php/HTML/QuickForm.php:0 12 DB_DataObject_FormBuilder->validateData() /usr/share/php/DB/DataObject/FormBuilder.php:2626 13 SIGDAO_ANOMALIE->validate() /usr/share/php/DB/DataObject/FormBuilder.php:2462 -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502

« previous php.pear.general (#24841) next »