jdmaymeow / cake-file
CakeFile plugin for CakePHP
Installs: 460
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.5.9
- cakephp/cakephp: >=3.3.2 <4.0.0
Requires (Dev)
README
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require jdmaymeow/cake-file
File uploading
This package contain UploaderCompoent
to use it, add to your controller
$this->loadComponent('CakeFile.Uploader', [ 'upload_domain' => 'nodes', 'upload_dir' => 'images' ]);
And call upload in your function for example
$node->attribute_image = $this->Uploader->upload($node->image);