dev-master
9999999-devDropzone Js for Yii2 Widget
MIT
The Requires
by zainiafzan
extension yii2 upload dropzone
Dropzone Js for Yii2 Widget
Dropzone Js for Yii2 Widget, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist zainiafzan/yii2-dropzone "*"
or add, (*4)
"zainiafzan/yii2-dropzone": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
php
<?= \zainiafzan\widget\Dropzone::widget([
'options' => [
'addRemoveLinks' => true,
],
'clientEvents' => [
'complete' => "function(file){console.log(file)}",
'removedfile' => "function(file){alert(file.name + ' is removed')}",
'sending' => "function(file, xhr, formData){formData.append('".Yii::$app->request->csrfParam."','".Yii::$app->request->getCsrfToken() ."')}"
]
])?>
, (*7)
Dropzone Js for Yii2 Widget
MIT
extension yii2 upload dropzone