dev-master
9999999-devYii2 Dropzone widget
GPL-3.0+
The Requires
by victorruan
yii2 upload dropzone
Yii2 Dropzone widget
This extension provides the Dropzone integration for the Yii2 framework., (*1)
This extension requires Dropzone, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist victorruan/yii2-dropzone "*"
or add, (*5)
"victorruan/yii2-dropzone": "*"
to the require section of your composer.json., (*6)
use victorruan\dropzone\DropZone; DropZone::widget( [ 'name' => 'file', // input name or 'model' and 'attribute' 'url' => '', // upload url 'storedFiles' => [], // stores files 'eventHandlers' => [], // dropzone event handlers 'sortable' => true, // sortable flag 'sortableOptions' => [], // sortable options 'htmlOptions' => [], // container html options 'options' => [], // dropzone js options ] )
you can also register victorruan\dropzone\UploadAction
and victorruan\dropzone\RemoveAction
actions in your controller, (*7)
Yii2 Dropzone widget
GPL-3.0+
yii2 upload dropzone