kak/upload

Upload files widgets for Yii2

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2017-10-27 14:35 UTC

This package is auto-updated.

Last update: 2024-12-22 05:55:26 UTC


README

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