Skip to content

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

License

Notifications You must be signed in to change notification settings

ZakharovAndrew/yii2-image-upload-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Image Upload Widget

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published