zakharov-andrew/yii2-image-upload-widget

Yii2 Image Upload Widget

Installs: 8

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

0.0.2 2024-01-25 22:09 UTC

This package is auto-updated.

Last update: 2024-10-25 23:41:05 UTC


README

Latest Stable Version Total Downloads License Yii2

Yii2 widget for loading images. That widget integrates multiple file selection, drag&drop support and preview of images.

use jQuery Knob plugin (http://anthonyterrien.com/knob/)

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require zakharov-andrew/yii2-image-upload-widget

or add

"zakharov-andrew/yii2-image-upload-widget": "*"

to the require section of your composer.json file.

Usage

Add this to your main configuration's modules array

    'modules' => [
        'imageupload' => [
            'class' => 'ZakharovAndrew\imageupload\Module',
            'uploadDir' => '/path/to/upload/dir/',
        ],
        // ...
    ],

Note: Change the value of uploadDir to the directory for uploading images.

License

yii2-image-upload-widget it is available under a MIT License. Detailed information can be found in the LICENSE.md.