add following method to form class
/* lib/form/doctrine/ExampleForm.class.php */
protected function processUploadedFile($field, $filename = null, $values = null) {
$fn = parent::processUploadedFile($field, $filename, $values);
if ($fn != "" && $fn != null && $this->getValue($field) != null) {
if($this->getValue($field)->getTempName() != null){
$thumb = new sfThumbnail(400, 300);
$thumb->loadFile(sfConfig::get('sf_upload_dir') . '/image_directory/' . $fn);
$thumb->save(sfConfig::get('sf_upload_dir') . '/thumb_directory/' . $fn);
}
}
return $fn;
}