How can I set an error in my model (before validation) if $objFile->getError() returns '1' (which means "file exceeds the upload_max_filesize"), which I can show with the CHtml::errorSummary() function?
Seems like this can't be done by validate(), because I don't come to the point of validation. This is what "CUploadFie::getInstance()" returns:
The 'file' validator already handles this. If the file is too big, it will show its 'tooLarge' message. Please check the API manual for CFileValidator for more details.
The 'file' validator already handles this. If the file is too big, it will show its 'tooLarge' message. Please check the API manual for CFileValidator for more details.
I don't get to the point where I can validate, because of the following code: