maxeko/yii2-simple-ajax-uploader

LPology Simple Ajax Uploader widget for Yii2

Installs: 4 753

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Type:yii2-extension

dev-master 2016-11-02 02:51 UTC

This package is not auto-updated.

Last update: 2025-09-14 01:40:26 UTC


README

Easy way to use IPology Simple Ajax Uploader in your Yii2 app.

Installation

composer require maxeko/yii2-simple-ajax-uploader

Usage

Put this in your view where you want to use IPology Simple Ajax Uploader:

<?php use maxeko\lpology\SimpleAjaxUploader; ?>

<?= SimpleAjaxUploader::widget([
    'settings' => [
        'button' => '<file upload button>',
        'url' => '<location of the server-side file upload handler>',
        'name' => '<upload parameter name>',
        // and any other string-value options form https://www.lpology.com/code/ajaxuploader/docs.php
    ], 
    'callbacks' => [
        'onComplete' => '<js function name>',
        // and any other js-value options form https://www.lpology.com/code/ajaxuploader/docs.php    
    ]
]) ?>

License

MIT