[font="Arial"]CUploadedFile::getInstance[color="#222222"][size="2"]([/size][/color]CModel[color="#222222"][size="2"] $model, string $attribute), returns null [/size][/color][color="#222222"][size="2"]if no file is uploaded for the specified model attribute.[/size][/color][/font]
[font="Arial"] [/font]
[font="Arial"][color="#222222"][size="2"]So, you can check it like this:[/size][/color][/font]