Re: QuickForm_File - whats that!?
| From: | Alexey Borzov | Date: | Wed, 06 Aug 2003 19:56:31 +0000 |
| Subject: | Re: QuickForm_File - whats that!? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7070@lists.php.net to get a copy of this message | ||
Hi!
Tommy Ipsen wrote:
I've noticed that some of the filehandling methods in QuickForm has been deprecated and I'm now supposed to use the methods in QuickForm_File instead! Is this just documentation getting ahead of programming or what's happening - I can't seem to find QuickForm_File anywhere!?That is HTML_QuickForm_file in HTML/QuickForm/file.php If you do $file =& $form->addElement('file', 'file'); then $file is an instance of this class.
Furthermore I can't seem to retrieve the original name of an uploaded file - only the temporary name using getUploadedFile('file') - should I instead use the variable _submitFiles['file']['name'] ?_submitFiles is, well, private. :] You can either directly access $_FILES or use $form->getElementValue('file') / $file->getValue()