Try another plugin?

https://github.com/burzum/FileStorage

On Sunday, November 10, 2013 10:34:15 AM UTC+1, sanjog dangol wrote:
>
> hello i am having same problem and cannot solve it .plz help me.
>
> On Wednesday, February 2, 2011 6:28:53 PM UTC+5:45, milotimbol wrote:
>>
>> Hi, 
>>
>> I'm new to cakephp currently trying out this plugin . 
>>
>> https://github.com/webtechnick/CakePHP-FileUpload-Plugin 
>>
>> I basically followed everything in the readme file. I'm just creating 
>> a simple blog app for studying purpose and I'm trying to combine it 
>> with the file upload. 
>>
>> Here's what i did 
>> I created an Upload Model. 
>>
>> <?php 
>> class Upload extends AppModel { 
>>   var $name = 'Upload'; 
>>   var $actsAs = array('FileUpload.FileUpload'); 
>> } 
>> ?> 
>>
>> Created a table. 
>>
>> CREATE TABLE IF NOT EXISTS `uploads` ( 
>>   `id` int(11) unsigned NOT NULL auto_increment, 
>>   `name` varchar(200) NOT NULL, 
>>   `type` varchar(200) NOT NULL, 
>>   `size` int(11) NOT NULL, 
>>   `created` datetime NOT NULL, 
>>   `modified` datetime NOT NULL, 
>> `post_id` int(11) default NULL, 
>>   PRIMARY KEY  (`id`) 
>> ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 
>>
>> made the relation to the post model 
>>
>> <?php 
>> class Post extends AppModel{ 
>>         var $name = 'Post'; 
>>         var $hasMany = array('Comment','Upload'); 
>>
>>        //some more code here 
>> ?> 
>>
>> When I try to save a Post. It says 
>>
>> Error: The Behavior file app\models\behaviors 
>> \file_upload.file_upload.php can not be found or does not exist. 
>> Error: Create the class below in file: app\models\behaviors 
>> \file_upload.file_upload.php 
>>
>> How do I use a plugin? it seems it is not looking for the files in the 
>> plugins folder. Is there some setting like in the bootstrap.php I need 
>> to change so that the app knows where this plugin is? 
>>
>> Hoping to get some help. 
>>
>> Thanks, 
>> Milo
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to