jdmaymeow / cake-file
This package is abandoned and no longer maintained.
The author suggests using the maymeow/file-upload package instead.
There is no license information available for the latest version (v1.4.4) of this package.
CakeFile plugin for CakePHP
v1.4.4
2017-07-25 12:51 UTC
Requires
- php: >=5.5.9
- cakephp/cakephp: >=3.3.2 <4.0.0
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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);