yii-dropzone Yii extension for the Dropzone.js file upload library

  1. Requirements
  2. Usage
  3. Resources

This extension uses the Dropzone.js open source file upload library to allow asynchronous file uploads in your form or ActiveForm.

Requirements

Developed using Yii 1.1.13 but should work with older versions as well.

Usage

Unzip the contents to your extensions folder.

In your view use it like this:

$this->widget('ext.dropzone.EDropzone', array(
    'model' => $model,
    'attribute' => 'file',
    'url' => $this->createUrl('controller/action'),
    'mimeTypes' => array('image/jpeg', 'image/png'),
    'onSuccess' => 'someJsFunction();',
    'options' => array(),
));

The options array accepts any option supported by the Dropzone.js library. Check the link below for all available options.

Resources

8 0
28 followers
2 152 downloads
Yii Version: 1.1
License: GPL-3.0
Category: User Interface
Developed by: subdee
Created on: Apr 10, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions