Yii Property “CUploadedFile.maxWidth” is not defined
$uploadedFile=CUploadedFile::getInstance($model,'image1'); $uploadedFile->maxWidth = 400; $uploadedFile->maxHeight = 300;
I follow the example in here. But I get the error saying that "Property "CUploadedFile.maxWidth" is not defined."
Is it my CUploadFile.php is not updated?
That pastebin source doesn't tell the whole story since it does not show where maxWidth is defined. CUploadedfile http://www.yiiframework.com/doc/api/1.1/CUploadedFile does not have a property maxWidth.
Instead of using the pastebin how about trying this extension that will do what it appears you are trying to do: http://www.yiiframework.com/extension/euploadedimage/