sanchezzzhak / kak-upload

Yii2 upload widgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kak-upload

upload widget for yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kak/upload "*"

Usages

<?= \kak\widgets\upload\Upload::widget([
   'model' => $model,
   'url' => ['site/upload']
]); ?>

Configuration controller

Attach action UploadAction

class SiteController extends \yii\web\Controller
{
    //...
    public function actions()
    {
        return [];
    }
}

Widget method options

About

Yii2 upload widgets


Languages

Language:PHP 67.8%Language:JavaScript 20.4%Language:CSS 11.9%