Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #423 Form file uploading bug.
Submitted: 2003-12-14 22:47 UTC
From: krisc79 at tlen dot pl Assigned: mw21st
Status: Closed Package: DB_DataObject_FormBuilder
PHP Version: 4.3.4 OS: XP
Roadmaps: (Not assigned)    
Subscription  


 [2003-12-14 22:47 UTC] krisc79 at tlen dot pl
Description: ------------ Bug in database update/insert field when uploading file from form input file control. My Fix: function processForm($values) { .... foreach ($values as $field=>$value) { $this->debug("Field $field "); if (in_array($field, array_keys($this->_do->table()))) { if (is_array($value)) { $this->debug(" (converting date) "); /******* KRISC ADDITION FOR CORRECT FILE UPLOADS 27_11_2003 *****/ $this->debug(" file array also! "); //print_r ($value); if (isset($value['tmp_name'])) $value = $value['name']; else $value = $this->_array2date($value); } $this->_do->$field = $value; $this->debug("is substituted with '$value'.\n"); } else { $this->debug("is not a valid field.\n"); } } ..... }

Comments

 [2003-12-31 00:19 UTC] mw21st at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.
 [2004-06-06 23:09 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!