ok i think the code should be like this:

vendor('Upload');

                $upload = new HTTP_Upload("en");
                $file = $upload->getFiles("userfile");

                if ($file->isValid()) {
                $moved = $file->moveTo("uploads/");
                if (!PEAR::isError($moved)) {
                        $this->flash("File was moved to uploads/", '/bad/');
                        exit;
                }

                }

but still im getting an error for a missing file

Warning: require_once(PEAR.php) [function.require-once]: failed to
open stream: No such file or directory in W:\www\cake\app\vendors
\Upload.php on line 42

Fatal error: require_once() [function.require]: Failed opening
required 'PEAR.php' (include_path='W:\www\cake;W:\www\cake\app\;.;/usr/
local/PHP/includes;/usr/local/PHP/pear') in W:\www\cake\app\vendors
\Upload.php on line 42

i seem to need that file pear.php, where can i get it from and should
i just put it into the vendors directory? thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to