milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Class 'Uploader' not found #179

Closed kirti123 closed 10 years ago

kirti123 commented 10 years ago

Hello, I am using version 3.7.4 of Uploader. I am getting the PHP Fatal error: Class 'Uploader' not found in /var/www/Project/admin/Plugin/FileUpload/Model/Behavior/AttachmentBehavior.php on line 109

Please help Thanks Kirti Umrigar

bradmaxs commented 10 years ago

Did you include App::import('Vendor', 'Uploader.Uploader'); in your model? What version of CakePHP are you using?

milesj commented 10 years ago

What @bradmaxs said, you need to import the Uploader class found within the plugin. Any reason you don't update to v4? It has many more features and bug fixes.

kirti123 commented 10 years ago

I am using cakephp-2.4.7 yes, Uploader class is imported. but it didn't work. what i changed is, i replaced the folder name to "FileUploader" instead "Uploader" and did changes all other files. it is working now.

and i have to fix that uploader issue soon. so haven't time to read about composer that is needed for v4. anyways, going to update the latest version.

Thanks