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

Installs: 458

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:cakephp-plugin

v1.4.4 2017-07-25 12:51 UTC

This package is not auto-updated.

Last update: 2021-11-11 17:12:10 UTC


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);