PHPackages                             twitf/yii2-dropzone - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. twitf/yii2-dropzone

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

twitf/yii2-dropzone
===================

Yii2 Dropzone Extention

v0.4.2(5y ago)123.3k↓33.3%2Apache-2.0JavaScript

Since Jan 8Pushed 5y agoCompare

[ Source](https://github.com/twitf/yii2-dropzone)[ Packagist](https://packagist.org/packages/twitf/yii2-dropzone)[ RSS](/packages/twitf-yii2-dropzone/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

twitf/yii2-dropzone
===================

[](#twitfyii2-dropzone)

[![Latest Stable Version](https://camo.githubusercontent.com/2dd13c9ac4a87ffd8aae1268f0f1b7d8a94485a90ebd3ccd30330597d4b53295/68747470733a2f2f706f7365722e707567782e6f72672f74776974662f796969322d64726f707a6f6e652f762f737461626c65)](https://packagist.org/packages/twitf/yii2-dropzone) [![Total Downloads](https://camo.githubusercontent.com/ae67a63513b085e1cb37769b655d492358acdbe8e56086784b0288311ebfc2d4/68747470733a2f2f706f7365722e707567782e6f72672f74776974662f796969322d64726f707a6f6e652f646f776e6c6f616473)](https://packagist.org/packages/twitf/yii2-dropzone) [![License](https://camo.githubusercontent.com/2e5aa2d2f725692714ec3e46253bcac9eafb2e84589f691159f014f89842cb2a/68747470733a2f2f706f7365722e707567782e6f72672f74776974662f796969322d64726f707a6f6e652f6c6963656e7365)](https://packagist.org/packages/twitf/yii2-dropzone)

> Yii2 Dropzone Extention , Supports sorting

[![](https://camo.githubusercontent.com/a739c1f6f1830aa51a4c38ebe360797c514d415d78f8b9e4570b5b403f2fb82d/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f303036336b32436a6c79316674346c637a356d6971673330746130366a6b6a6d2e676966)](https://camo.githubusercontent.com/a739c1f6f1830aa51a4c38ebe360797c514d415d78f8b9e4570b5b403f2fb82d/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f303036336b32436a6c79316674346c637a356d6971673330746130366a6b6a6d2e676966)

> PS：再三强调不要使用jquery2.2.4以上版本，不兼容jquery2.2.4以上版本(Again and again, do not use jquery2.2.4 or above, not compatible with jquery2.2.4 or above.)

```
可以在此处自定义资源包 xxxx/config/config.php配置如下
'components'=>[
            'assetManager' => [
            'bundles' => [
                'yii\web\JqueryAsset' => [
                    'sourcePath' => null,// 一定不要发布该资源
                    'js' => [
                        '/js/jquery-2.2.4.min.js',
                    ]
                ],
            ],
        ],
]

```

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

```

or add

```
"twitf/yii2-dropzone": "*"

```

to the require section of your `composer.json` file.

Use
---

[](#use)

Once the extension is installed, simply use it in your code by :

> Controller Example (##This step is necessary.)

```
