Reputation: 175
I am using this image uploader
After following the installation instructions, I am getting this problem:
This is my folder structure (manually installed):
As you can see, UploadBehavior.php is already created, and the content is the same as the one on Git, with the UploadBehaviour class defined.
I also loaded the plugin on Config/bootstrap.php as usual
CakePlugin::load('Upload');
And also on the model
public $actsAs = array(
'Upload.Upload' => array(
'foto' => array(
'fields' => array(
'dir' => 'foto_dir'
)
)
)
);
I have no clue of what is going on
Upvotes: 0
Views: 304
Reputation: 175
I found the problem. As the file was there but it wasn't able to access it I modified the permissions so that every user can access it.. I also needed to change to 777 the app/webroot/files app.
Maybe creators of this plugin should warn about this.
Upvotes: 0
Reputation: 1400
Possibly it's a permission issue, try installing the plugin via git or changing permissions with chmod if you're using linux
Upvotes: 1