Hi, i looked everywhere, and have not idea how to resolve this:
1. I have form (Doctrine) with text field name, name2, and file upload field $this->widgetSchema['file'] = new sfWidgetFormInputFileEditable(array( 'label' => 'Photo', 'file_src' => '/uploads/'.$this->getObject()->getFile(), 'is_image' => true, 'edit_mode' => !$this->isNew(), 'with_delete' => true, 'template' => '<div><b><a href="/uploads/'.$this->getObject()- >getFile().'" target="new">'.$this->getObject()->getFile().'</a></ b><br />%input%<br />%delete% UsuĊ aktualny plik</div>' )); $this->validatorSchema['file'] = new sfValidatorFile(array('path' => sfConfig::get('sf_upload_dir'), 'required' => false)); 2. I want to get file and upload to \name\name2.ext (according to inserted data in form`s field) What i try: 1. Postvalidator are running after upload... i don`t want to copy/ rename file... 2. It`s possible to access to request post values from validator? (but i think, this is not very good way, but if i have`t any other solutions... or maybe I`m wrong - it`s good way? How?) 3. I try generateFileFilename() but question - how can i get values from form field? any suggestions? Please help... i working on this another day... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---