This package is abandoned and no longer maintained. No replacement package was suggested.

CakePHP plugin for upload files with processing images using GD or ImageMagick library

Installs: 166

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:cakephp-plugin

1.2.1 2020-05-23 20:50 UTC

This package is auto-updated.

Last update: 2024-01-15 05:42:09 UTC


README

Build Status Scrutinizer Code Quality LICENSE Releases

Upload files with processing images using GD or ImageMagick library.

Requirements

It is developed for CakePHP 4.x.

Installation

You can install plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require slicesofcake/file

Setup

Add file type input in your view:

echo $this->Form->control('logo', [
    'type' => 'file',
]);

You should also add 'type' => 'file' in your creating form method.

Note: If you want use multiple file input (from HTML5), just replace name of input field from logo to logo[] and add to options attribute multiple.

Next, load behavior in your table on initialize method, like below:

$this->addBehavior('SlicesCake/File.File', [
    'logo',
]);

Note: Field should be accessible in Entity class.

TODOs