Re: problem with file uploads using quickform
| From: | Alexey Borzov | Date: | Thu, 08 Mar 2007 11:45:28 +0000 |
| Subject: | Re: problem with file uploads using quickform | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26782@lists.php.net to get a copy of this message | ||
Hi,
Charles Kline wrote:
i am having a problem accessing the name of the file being uploaded. the file uploads just fine, but i can't seem to get the name to add to my sql query. Note, I have tired using print_r($values) inside the process_data function and it does not display any of the info about the file.Well, duh. That's because you tell it not to pass any info about the files:
if ($form->validate()) {
//$form->freeze();
$form->process('process_data', false);
//exit;
} else {
See the docs:
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.process.php