Call to a member function saveAs() on null

Hello im new in here

i got stuck on my controller content upload

Error message

please i need help

[size=2]UploadedFile::getInstance() can return "null" if there is no file uploaded so you need to check for that possibility.[/size]

[size=2]

[/size]

[size=2]btw. is this for Yii1.1.x (you posted here) or 2.0?[/size]

its still error, i already make sure if i choose the file and then error message is message is

its yii2 advanced anyway.

well, by your error message it does nothing to do with the uploaded file… but with the $imageName variable… debug it to see why it’s not set.

[color="#008000"]/* NOTE: moved to Yii2 section */[/color]