alexgivi / yii2-plupload-widget
Plupload Widget for Yii2, using Moxiecode plupload
Installs: 215
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- moxiecode/plupload: ^2.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-04-02 23:38:25 UTC
README
Plupload Widget for Yii2 uses moxiecode/plupload
Installation
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.
Usage
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. } }