PHPackages                             joni-jones/yii2-fuploader - 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. joni-jones/yii2-fuploader

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

joni-jones/yii2-fuploader
=========================

BlueImp file upload widget for Yii2

1.1.0(10y ago)01083MITPHPPHP &gt;=5.5.0

Since Feb 24Pushed 10y ago2 watchersCompare

[ Source](https://github.com/joni-jones/yii2-fuploader)[ Packagist](https://packagist.org/packages/joni-jones/yii2-fuploader)[ RSS](/packages/joni-jones-yii2-fuploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

File Uploader
=============

[](#file-uploader)

File uploader. Yii2 extension based on [jQuery File Upload Plugin](https://github.com/blueimp/jQuery-File-Upload).

[![Latest Stable Version](https://camo.githubusercontent.com/229ac10eaecfbc1a45b358e43d325e986495e44a9f1d5986da2bee3622e531ee/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d6675706c6f616465722f762f737461626c65)](https://packagist.org/packages/joni-jones/yii2-fuploader)[![Total Downloads](https://camo.githubusercontent.com/856f6a6a4d03e3b28d6a3d698987db8e010425be32194ccae0952b9391b8884c/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d6675706c6f616465722f646f776e6c6f616473)](https://packagist.org/packages/joni-jones/yii2-fuploader)[![License](https://camo.githubusercontent.com/5391ed0577261de442de5c717ea280d5b450ff7769b727c0b45f10783b1bceb4/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d6675706c6f616465722f6c6963656e7365)](https://packagist.org/packages/joni-jones/yii2-fuploader)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist joni-jones/yii2-fuploader "*"

```

or add

```
"joni-jones/yii2-fuploader": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```

```

1. Specify `action` property for uploading url:

    ```
    FileUpload::widget([
        'action' => Url::to(['some_action'])
    ]);
    ```
2. Specify any jquery file upload options:

    ```
    FileUpload::widget([
        'options' => [
            'plugin' => [
                'formData' => 'some data',
            ],
        ],
        'content' => 'Select image',
    ]);
    ```
3. To setup plugin events or callbacks - use `clientEvents` option for widget:

    ```
    FileUpload::widget([
            'clientEvents' => [
                'done' => 'function(e, data){console.log(data);}',
                'fail' => 'function(e, data){console.log(data);}'
            ]
    ]);
    ```
4. Also you can use extension actions to store some file details after uploading. For example, update user avatar attribute in database.

    ```
    public function actions()
    {
            return[
                'some_action' => [
                    'class' => 'jones\fuploader\actions\UploadAction',
                    'path' => 'some path for uploading',
                    'url' => 'some url for uploaded file', //this url will be accessable in action response
                    'callback' => [$this, 'someCallback'] //any callable function
                ]
            ];
    }
    ```
5. If callback was specified it will be triggered after uploading:

    ```
    public function someCallback($request, $files)
    {
        // some code
    }
    ```

`UploadAction()` return response in json format. This is structure of response:

```
```json
{"message": "some success message", "files": [{"name": "", "ext": ""}], "url": "url to files directory"}
```

```json
{"reason": "message with reason why file does not uploaded"}
```

```

Also, status codes of response will be returned in headers.

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~131 days

Total

2

Last Release

3964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98dc304c67b7a16776631b1b2058be9c4dc084cc3c1986e17c03689a5bbb609a?d=identicon)[joni-jones](/maintainers/joni-jones)

---

Top Contributors

[![YevSent](https://avatars.githubusercontent.com/u/2736528?v=4)](https://github.com/YevSent "YevSent (13 commits)")[![p0vidl0](https://avatars.githubusercontent.com/u/6966538?v=4)](https://github.com/p0vidl0 "p0vidl0 (1 commits)")

---

Tags

file-uploadyii2yii2-extensionyii2extensionjquery-file-uploadfile-uploadblueimp plugin

### Embed Badge

![Health badge](/badges/joni-jones-yii2-fuploader/health.svg)

```
[![Health](https://phpackages.com/badges/joni-jones-yii2-fuploader/health.svg)](https://phpackages.com/packages/joni-jones-yii2-fuploader)
```

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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