PHPackages                             mztest/yii2-widget-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. mztest/yii2-widget-file-upload

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

mztest/yii2-widget-file-upload
==============================

A widget for uploading files to your server.

1.0.0(9y ago)0621MITPHP

Since Mar 1Pushed 9y agoCompare

[ Source](https://github.com/mztest/yii2-widget-file-upload)[ Packagist](https://packagist.org/packages/mztest/yii2-widget-file-upload)[ Docs](https://github.com/mztest/yii2-widget-file-upload)[ RSS](/packages/mztest-yii2-widget-file-upload/feed)WikiDiscussions master Synced 2mo ago

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

yii2-widget-file-upload
=======================

[](#yii2-widget-file-upload)

Easily upload any files to your server in [Yii Framework 2.0](https://github.com/yiisoft/yii2). The extension uses the [jQueryFileUpload](https://github.com/blueimp/jQuery-File-Upload).

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist mztest/yii2-widget-file-upload "*"

```

or add

```
"mztest/yii2-widget-file-upload": "*"

```

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

Usage
-----

[](#usage)

1. Set upload action at your controller

    ```
    public function actions()
    {
        return [
            'upload' => [
                'class' => 'mztest\upload\actions\FileUploadAction',
            ],
        ];
    }
    ```
2. simply use it in your code by :

    ```
    use mztest\upload\FileUpload;
