PHPackages                             yii-ext/plupload - 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. yii-ext/plupload

ActiveYii-extension

yii-ext/plupload
================

plupload wrapper

0.1(12y ago)0171PHP

Since May 11Pushed 12y ago1 watchersCompare

[ Source](https://github.com/yii-ext/plupload)[ Packagist](https://packagist.org/packages/yii-ext/plupload)[ Docs](https://github.com/yii-ext/plupload/)[ RSS](/packages/yii-ext-plupload/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

```
 /**
 * @return array list of actions.
 */
public function actions()
{
    return array(
        'upload' => array(
            'class' => '\yii-ext\plupload\Action',
            'completeCallback' => function ($fileFullName, $fileSelfName) {
        $fileModel = new UserFileModel();
        $fileModel->userId = Yii::app()->user->id;
        $fileModel->name = $fileSelfName;
        $fileModel->file = $fileFullName;
        if (!$fileModel->save()) {
            throw new CHttpException(500, CVarDumper::dumpAsString($fileModel->getErrors()));
        }
        $response = array(
            'downloadUrl' => Yii::app()->createUrl('downloadfile', array('id' => $fileModel->id)),
            'deleteUrl' => Yii::app()->createUrl('deletefile', array('id' => $fileModel->id)),
        );
        return $response;
    }
        )
    );
}

```

 Upload CV Files:  widget('FileUploader', array( 'id' =&gt; 'filelist', 'uploadUrl' =&gt; array('upload'), 'files' =&gt; $userModel-&gt;files, 'maxFileCount' =&gt; 3, 'clientOptions' =&gt; array( 'filters' =&gt; array( 'mime_types' =&gt; array( array( 'title' =&gt; 'Documents', 'extensions' =&gt; implode(',', Yii::app()-&gt;params['allowedUserFileTypes']), ) ), 'max_file_size' =&gt; '2mb', 'prevent_duplicates' =&gt; true, ), ), )); ?&gt;

```
**
 * Allow downloading of the user file specified by its id.
 * @param integer $id user file id.
 * @throws CHttpException on failure.
 */
public function actionDownloadfile($id)
{
    $userFileModel = $this->loadUserFileModel($id);
    Yii::app()->getRequest()->sendFile($userFileModel->getFileSelfName(), $userFileModel->getFileContent());
}

/**
 * Deletes user file specified by its id.
 * @param integer $id user file id.
 * @throws CHttpException on failure.
 */
public function actionDeletefile($id)
{
    $userFileModel = $this->loadUserFileModel($id);
    $userFileModel->delete();
    if (!Yii::app()->getRequest()->getIsAjaxRequest()) {
        $this->redirect(array('resume'));
    } else {
        Yii::app()->end();
    }
}

/**
 * Finds the user file model specified by id.
 * Checks if model belongs to the current user.
 * @param integer $id user file id.
 * @return UserFileModel|\zfort\db\ar\behaviors\File user file model instance.
 * @throws CHttpException on failure.
 */
protected function loadUserFileModel($id)
{
    /* @var UserFileModel|zfort\db\ar\behaviors\File $userFileModel */
    /* @var WebUser $webUser */
    $webUser = Yii::app()->getComponent('user');
    $userFileModel = UserFileModel::model()->findByPk($id);
    if (!is_object($userFileModel) || $userFileModel->userId != $webUser->getId()) {
        throw new CHttpException(404, 'Unable to find requested file');
    }
    return $userFileModel;
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

4388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Top Contributors

[![dmitry-semenov](https://avatars.githubusercontent.com/u/17027799?v=4)](https://github.com/dmitry-semenov "dmitry-semenov (2 commits)")

### Embed Badge

![Health badge](/badges/yii-ext-plupload/health.svg)

```
[![Health](https://phpackages.com/badges/yii-ext-plupload/health.svg)](https://phpackages.com/packages/yii-ext-plupload)
```

PHPackages © 2026

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