I was trying to up load image hear is the code which i wrote in lib/form class
$this->validatorSchema['picture'] = new sfValidatorFile(array( 'required' => true, 'path' => sfConfig::get('sf_upload_dir').'/images')); in action file $files = $request->getFiles('user'); $req = $request->getParameter('user'); $this->form -> bind($req,$files); $file = $this->form->getValue('picture'); $filename = $file->getOriginalName(); $extension = $file->getOriginalExtension(); $file->save(sfConfig::get('sf_upload_dir').'/images'.$filename. $extension); $update = $this->form ->save(); in log the below code is getting executed $filename = $file->getOriginalName(); $extension = $file->getOriginalExtension(); $file->save(sfConfig::get('sf_upload_dir').'/images'.$filename. $extension); $update = $this->form ->save(); can please let me know ehat is the mistake i am doing. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en