HTML_QuickForm: two new functions (file uploads)

From: Date: Sun, 23 Feb 2003 16:15:57 +0000
Subject: HTML_QuickForm: two new functions (file uploads)
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13645@lists.php.net to get a copy of this message
Hello, I would like to see two simply but usefull (at least for me) functions in QuickForm.php: // {{{ isUploadedFile() /** * Checks if the given element contains an uploaded file * * @param string $element Element name * @since 2.9 * @access public * @return bool true if file has been uploaded, false otherwise * @throws */ function isUploadedFile($element) { return $this->_ruleIsUploadedFile($element); } // end func isUploadedFile // }}} // {{{ getUploadedFile() /** * Returns temporary filename of uploaded file * @param string $element * @since 2.9 * @access public */ function getUploadedFile($element) { $file = $this->_submitFiles[$element]; return $file['tmp_name']; } // end func getUploadedFile // }}} This functions are usefull when I don't need to move the uploaded file, and I only want to read it's content. What do you think? Should I produce diffs and send to developers? - Wojtek

« previous php.pear.dev (#13645) next »