Re: QF: exportValues does not ouput file info (?)
| From: | Alexey Borzov | Date: | Wed, 05 Nov 2003 12:20:50 +0000 |
| Subject: | Re: QF: exportValues does not ouput file info (?) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8767@lists.php.net to get a copy of this message | ||
Hi!
Jeroen Houben wrote:
I have a QuickForm with some text and some file elements. Doing $form->exportValues() does not get me any info on these files. Instead I have to create a reference to the file and then use $ref->getValue(). Any particular reason for this?This is by design. exportValues() is mainly intended to return the values that will be stored somewhere (e.g. QFC stores them in session). File data is useless outside of the context of current request, thus it is not returned. You can use getElementValue() or getSubmitValue() methods of HTML_QuickForm to get this data. I'll probably address this in docs, too.