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
Requires
- php: >=7.2
README
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
.