Closed rjsandim closed 10 years ago
Are you copying AttachmentBehavior
and FileValidationBehavior
into the app? They should reside within the Uploader
folder within the Plugin
folder. If you install the uploader through composer, it will place everything in the correct locations.
Thanks for your quick reaction!
Sorry, It is my first time using composer.
I fix this, and used Composer and the files seems now right. Should I install suggested packages?
If this packages is not necessary for a basic configuration the problem persists, else should I install them?
Should I include 'Uploader' on CakePlugin::load() on Config/bootstrap.php file?
Whole configuration was right, the problem was the Model file name, It was 'Highlights' and should be 'Highlight', unfortunately I didn't realize it because the class name was right (Highlight), I've changed Model file name and everything works perfectly. I know, I'm stupid, but It happens in best families. Thanks for your time, and sorry about wasting you time with this.
No problem, glad you figured it out!
Hi milesj, I having trouble in Uploader configuration, My Configuration follows next:
I've put AttachmentBehavior.php and FileValidationBehavior.php on app/Model/Behavior
I've put uploader.mo and uploader.po on app/Locale/eng/LC_MESSAGES
Composer generated on Vendor all files of composer, mjohnson and autoload.php on app/Vendor
I've put on app/Config/core.php:
I have a model called Highlight
And a Controller:
And my view on app/View/Highlights/add.ctp
I'm thinking that I'm doing everything all right, but I'm receiving this error:
I read someone saying that if I use this code my problem would be solved:
However, the error gone and the file name was saved on database, but the file haven't uploaded and wasn't saved on right folder. Do you have any idea how to help me? I'm using the last Uploader's version, I've tried several configurations to 'uploadDir', I guess that isn't the problem. Thanks for while, do you receive some donate? I've used your code before and I've learned a lot.