PHPackages                             chenhaitang/cakephp-jquery-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. [File &amp; Storage](/categories/file-storage)
4. /
5. chenhaitang/cakephp-jquery-file-upload

ActiveCakephp-plugin[File &amp; Storage](/categories/file-storage)

chenhaitang/cakephp-jquery-file-upload
======================================

Cakephp 3.x Jquery File Upload

1.0.1(5y ago)020MITPHP

Since Nov 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chenhaitang/cakephp-jquery-file-upload)[ Packagist](https://packagist.org/packages/chenhaitang/cakephp-jquery-file-upload)[ RSS](/packages/chenhaitang-cakephp-jquery-file-upload/feed)WikiDiscussions master Synced 5d ago

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

Cakephp-Jquery-File-Upload
==========================

[](#cakephp-jquery-file-upload)

This is a **Cakephp 3.x** vendor/plugin for blueimp jquery file upload widget

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

[](#requirements)

1. Cakephp 3.x
2. Blueimp Jquery File Upload -  (dependency is added into the plugin's composer, so it wil be automaticaly installed)

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

[](#installation)

**1)** Installation is done by composer: add the following into your main composer.json (inside require) and then run `composer update`

```
"hashmode/cakephp-jquery-file-upload": "~1.0"

```

To use the css and js files from the original library, they are being copied to plugin's webroot directory: for that inside your application's main `composer.json` the following should be added

```
"scripts": {
    "post-update-cmd": "CakephpJqueryFileUpload\\Console\\Installer::postUpdate"
},

```

**2)** Load Plugin from bootstrap, and add component into controller, helper - to AppView

```
// bootstrap.php
Plugin::load('CakephpJqueryFileUpload');

// inside your controller's initialize
$this->loadComponent('CakephpJqueryFileUpload.JqueryFileUpload');

// inside AppView.php initialize
$this->loadHelper('CakephpJqueryFileUpload.JqueryFileUpload');

```

**3)** To add the `UploadHelper` class to autoload classmap, add this into your main composer - under `autoload`, same level as `psr-4`

```
"classmap": [
	"vendor/blueimp/jquery-file-upload/server/php"
]

```

and run `composer dump-autoload`

**4)** Simple setup example

```

    Select files...

$(function () {

    // Initialize the jQuery File Upload widget:
    $('#fileupload').fileupload({
        // Uncomment the following to send cross-domain cookies:
        //xhrFields: {withCredentials: true},
        url: '/myController/myAction'
    });

});

```

inside your `myAction`

```
// example options
$options = array(
    'max_file_size' => 2048000,
    'max_number_of_files' => 10,
    'access_control_allow_methods' => array(
        'POST'
    ),
    'access_control_allow_origin' => Router::fullBaseUrl(),
    'accept_file_types' => '/\.(jpe?g|png)$/i',
    'upload_dir' => WWW_ROOT . 'files' . DS . 'uploads' . DS,
    'upload_url' => '/files/uploads/',
    'print_response' => false
);

$result = $this->JqueryFileUpload->upload($options);

```

For full `$options` please refer to

License
=======

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/034d81eb29ff366b4df2567fdbb679048ef823d8b2f7b181438016af9057317c?d=identicon)[chenhaitang](/maintainers/chenhaitang)

---

Top Contributors

[![chenhaitang](https://avatars.githubusercontent.com/u/16585295?v=4)](https://github.com/chenhaitang "chenhaitang (12 commits)")

---

Tags

cakephpjqueryfile-upload

### Embed Badge

![Health badge](/badges/chenhaitang-cakephp-jquery-file-upload/health.svg)

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

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k7.9M13](/packages/kartik-v-bootstrap-fileinput)[moxiecode/plupload

Plupload is a JavaScript API for dealing with file uploads it supports features like multiple file selection, file type filtering, request chunking, client side image scaling and it uses different runtimes to achieve this such as HTML 5, Silverlight and Flash.

5.6k548.7k6](/packages/moxiecode-plupload)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M95](/packages/kartik-v-yii2-widget-fileinput)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[coffeecode/uploader

It is a easy PHP upload manager for images, files and media in your application

17149.7k3](/packages/coffeecode-uploader)[wyrihaximus/fly-pie

Flysystem integration plugin for CakePHP 5

38297.8k](/packages/wyrihaximus-fly-pie)

PHPackages © 2026

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