gringlas/cakephp-base64tofile

There is no license information available for the latest version (0.2.2) of this package.

Convert a base64 encoded string (like an image) to an actual file for usage in a standard file upload.

Installs: 580

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:cakephp-plugin

0.2.2 2021-02-17 09:56 UTC

This package is auto-updated.

Last update: 2024-05-21 02:43:11 UTC


README

About

This plugin will convert a base64 encoded file string into a "classic" fileupload, like in $_FILES, which can then be passed to other fileuploads, like josegonzalez/cakephp-upload.

Installation

To install simply add it to your composer dependencies composer require gringlas/cakephp-base64tofile. The plugin is mainly a behavior, which you should attach to your file entity:

$this->addBehavior('Base64ToFile.Base64ToFile', [
        'field' => 'file'
    ]);

Where field contains the name of the field with the base64 encoded file.