Plupload Widget for Yii2 uses moxiecode/plupload
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist alexgivi/yii2-plupload-widget "*"
or add
"alexgivi/yii2-plupload-widget": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \alexgivi\plupload\Plupload::widget([
'url' => ['controller/test-upload'],
]); ?>
In the controller:
class Controller extends yii\web\Controller
{
public function actionTestUpload()
{
$file = UploadedFile::getInstanceByName('file');
// perform file save.
}
}