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/)
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.
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.
yii2-image-upload-widget it is available under a MIT License. Detailed information can be found in the LICENSE.md.