Changing to CUploadedFile::getInstanceByName('UploadForm')