Upload image yii2

Hello
i have a image stored in a folder in my computer, and i want do upload to the site…

but this code not works : Captura-de-ecra-2021-08-23-a-s-11-13-51 — ImgBB
the image in stored in the variable userProfileImg

Thanks for the help