rogeecn/yii2-simple-ajax-uploader

SimpleAjaxUploader wrapper of Yii2 input extension https://github.com/LPology/Simple-Ajax-Uploader

Installs: 445

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.0.2 2017-12-26 10:00 UTC

This package is auto-updated.

Last update: 2024-04-05 18:24:15 UTC


README

SimpleAjaxUploader wraper of yii2 input extension

single image upload or multiple image upload

thks for LPology/Simple-Ajax-Uploader

Screenshot

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist rogeecn/yii2-simple-ajax-uploader "~1.0.1"

or add

"rogeecn/yii2-simple-ajax-uploader": "~1.0.1"

to the require section of your composer.json file.

Usage

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

// single image upload
<?= $form->field($model,"xxx")->widget(\rogeecn\SimpleAjaxUploader\SingleImage::className(),[
    // configuration..
]); ?>

// multiple image upload
<?= $form->field($model,"xxx")->widget(\rogeecn\SimpleAjaxUploader\MultipleImage::className(),[
    // configuration..
]); ?>