image upload behavior

Hi all!

Can somebody suggest image upload behavior?

I found two, but they are not work.

I’ve checked that github.com/yii-dream-team/yii2-upload-behavior

During install step I see next error:


composer require --prefer-dist yii-dream-team/yii2-upload-behavior "*"


Your requirements could not be resolved to an installable set of packages.


  Problem 1

    - The requested package yii-dream-team/yii2-upload-behavior could not be found in any version, there may be a typo in the package name.


Potential causes:

 - A typo in the package name

 - The package is not available in a stable-enough version according to your minimum-stability setting



Also I checked that github.com/mongosoft/yii2-upload-behavior

After installation and configuring it just not upload images without any errors.

In yii1 I used similar extension and it works good.

Now I miss for similar extension in yii2 :(

Thanks a lot!

Hi, are you still getting errors? Everything should work fine now.

Hello, I get the same error while try to installing image-upload-behavior.

Can you please check this again? Thank you.

Save us all some time and read the error message ;)

I woult if the error message would be helpful ;)


$ composer require --prefer-dist yii-dream-team/yii2-upload-behavior "*"

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.


  Problem 1

    - The requested package yii-dream-team/yii2-upload-behavior could not be found in any version, there may be a typo in the package name.


Potential causes:

 - A typo in the package name

 - The package is not available in a stable-enough version according to your minimum-stability setting

   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.


Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Its exact the code I found on the git repo: https://github.com/yii-dream-team/yii2-upload-behavior

What do you have as ‘minimum-stability setting’ ?

You probably need to set it to ‘dev’.

Thats it! Thank you.

I’m completely new in development with yii and composer, so thanks for your support.