hi, the solution of Tomasz maybe more easy than creating a new class. Here (http://www.symfony-project.org/api/1_2/sfValidatedFile) you can find the documentation and the methods getOriginalName and others.
Joan 2009/3/30 Tomasz Ignatiuk <tomek.ignat...@gmail.com> > > $form->bind($request->getParameter($form->getName()), $request- > >getFiles($form->getName())); > if ($form->isValid()) > { > > $file = $this->form->getValue('your_file_fieldname'); > > if(!is_null($file)) > { > $filename = $file->getOriginalName() > > $file->save('yourupload_path/'.$filename); > > } > } > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---