devgroup/yii2-dropzone Yii2 Dropzone widget

uploaddropzone

Dropzone Extension for Yii 2

This extension provides the Dropzone integration for the Yii2 framework.

Installation

This extension requires Dropzone

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist devgroup/yii2-dropzone "*"

or add

"devgroup/yii2-dropzone": "*"

to the require section of your composer.json.

General Usage

use devgroup\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 devgroup\dropzone\UploadAction and devgroup\dropzone\RemoveAction actions in your controller

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.5 is the latest of 6 releases



GPL-3.0+ license
Stats
11 github stars & 13 github forks
7 downloads in the last day
123 downloads in the last 30 days
42304 total downloads