kohana 3.1 ErrorException [ Fatal Error ]: Call to undefined method upload::valid()

357 Views Asked by At

im try to use kohana 3.1 upload. But i get the above error. im using the example here

Ok i have looked for the error around the net and i cant get where the problem is.

1

There are 1 best solutions below

0
young pac On BEST ANSWER

i had put a vendor directory in my DOCROOT and place this in my bootstrap file

require_once(APPPATH.'vendor/upload/upload.php');

So kohana was looking for the upload class here instead of in the system.

Thanks alot zeebee for your solution.

I used the first one and automatically saw the error. the upload class is now working perfectly...