PHPackages                             sandip/cake3.x\_file\_upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sandip/cake3.x\_file\_upload

ActiveCakephp-plugin

sandip/cake3.x\_file\_upload
============================

v1.2.0(7y ago)0663[1 issues](https://github.com/ghadagesandip/cake3.x-fileupload-component/issues)MITPHPPHP &gt;=5.5.9

Since Feb 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ghadagesandip/cake3.x-fileupload-component)[ Packagist](https://packagist.org/packages/sandip/cake3.x_file_upload)[ RSS](/packages/sandip-cake3x-file-upload/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

CakePHP Fileupload Component
============================

[](#cakephp-fileupload-component)

It can be used to upload a file, create thumbnails, remove file, create a file from image base64 data

Requirements
------------

[](#requirements)

The `master` branch has the following requirements:

- CakePHP 3.0.0 or greater.
- PHP 5.4.16 or greater.

Installation
------------

[](#installation)

- Install the plugin with [Composer](https://getcomposer.org/) from your CakePHP Project's ROOT directory (where the **composer.json** file is located)

```
composer require sandip/cake3.x_file_upload
```

- [Load the plugin](http://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin)

```
Plugin::load('FileUpload');
```

How to use
----------

[](#how-to-use)

1. Load plugin in controller's initialise function

```
namespace App\Controller;

use Cake\Event\Event;

/**
 * My Users Controller
 */
class UsersController extends AppController {

        public function initialize(){
        parent::initialize();
        $this->loadComponent('FileUpload.FileUpload',[
            'defaultThumb'=>[
                'small'=>[30,30],
                'medium' => [90,90 ]
            ],
            'uploadDir' =>WWW_ROOT.'uploads'.DS.'profile_pic'.DS,
            'maintainAspectRation'=>true
        ]);
    }

}
```

2. call a function to upload image

```
 public function add()
    {
        $user = $this->Users->newEntity();
        if ($this->request->is('post')) {
            $this->request->data['profile_pic'] = $this->FileUpload->doFileUpload($this->request->data['profile_pic']);
            $user = $this->Users->patchEntity($user, $this->request->data);
            if ($this->Users->save($user)) {
                $this->Flash->success(__('The user has been saved.'));
                return $this->redirect(['controller' => 'Users','action' => 'index']);
            } else {
                $this->Flash->error(__('The user could not be saved. Please, try again.'));
            }
        }
        $this->set(compact('user'));
        $this->set('_serialize', ['user']);
    }
```

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~431 days

Total

3

Last Release

2812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5215fa41eef513a71f3fe032114983b01833ffeb0dfb3db5f9e7be607802f58?d=identicon)[ghadagesandip](/maintainers/ghadagesandip)

---

Top Contributors

[![sandipgneo](https://avatars.githubusercontent.com/u/65887677?v=4)](https://github.com/sandipgneo "sandipgneo (5 commits)")[![ghadagesandip](https://avatars.githubusercontent.com/u/2412149?v=4)](https://github.com/ghadagesandip "ghadagesandip (3 commits)")

### Embed Badge

![Health badge](/badges/sandip-cake3x-file-upload/health.svg)

```
[![Health](https://phpackages.com/badges/sandip-cake3x-file-upload/health.svg)](https://phpackages.com/packages/sandip-cake3x-file-upload)
```

###  Alternatives

[snelg/cakephp-3-oracle

Oracle datasource for CakePHP 3

111.5k](/packages/snelg-cakephp-3-oracle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
