2017 © Pedro Peláez
 

yii2-extension yii2-widget-fineuploader

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

image

parpe/yii2-widget-fineuploader

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

  • Monday, July 24, 2017
  • by parpe
  • Repository
  • 0 Watchers
  • 0 Stars
  • 470 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Enhanced Yii2 wrapper for the Fineuploader.js plugin

See https://github.com/parpeoficial/yii2-widget-fineuploader., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist parpe/yii2-widget-fineuploader "*"

or add, (*4)

"parpe/yii2-widget-fineuploader": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?= \parpe\fineuploader\Fineuploader::widget([
        // by default it uses the jQuery wrapper for the library, if you want the native one, use this:
        'jQuery' => false,
        'clientOptions' => [
            'request' => [
                'endpoint' => Yii::$app->urlManager->createUrl(['/your-handler']),
                'params' => [Yii::$app->request->csrfParam => Yii::$app->request->csrfToken]
            ],
            'validation' => [
                'allowedExtensions' => ['jpeg', 'jpg', 'png', 'bmp', 'gif'],
            ],
            'classes' => [
                'success' => 'alert alert-success hidden',
                'fail' => 'alert alert-error'
            ],
        ],
        'clientEvents' => [
            'autoRetry' => '',
            'cancel' => '',
            'complete' => '',
            ...
        ]
    ])
?>

The Versions

24/07 2017

dev-master

9999999-dev

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar parpe

extension yii2 fineuploader

24/07 2017

1.0.2

1.0.2.0

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar parpe

extension yii2 fineuploader

24/07 2017

1.0.1

1.0.1.0

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar parpe

extension yii2 fineuploader

19/03 2016

1.0.0

1.0.0.0

Enhanced Yii2 wrapper for the Fineuploader.js plugin.

  Sources   Download

BSD-3-Clause

The Requires

 

by Steven Cash

extension yii2 fineuploader