i have this in my user model
array('picture','file','types'=>'jpg, jpeg, gif, png','maxSize'=>1024*1024*2,'tooLarge'=>'The File is Too large to be uploaded. Maximum is 2Mb','allowEmpty'=>true),
and i m using this in my controller
if(CUploadedFile::getInstance($model,'picture')){
$model->picture= CUploadedFile::getInstance($model,'picture');
}
but when ever i try to upload a file more than 2Mb it never shows any warning message, but it renders the same page again.
can anyone tell me that what could be wrong???