Hi, Im using sfWidgetFormInputFileEditable to add a photograph of the users in my backend.
When i try to edit some field of any user, the path to the image is not showed inside the widget and after pushing the "Save" button the image dissapear. I dont have any problem uploading the file. Any idea? Here you have my code: class ProfileForm extends BaseProfileForm { public function configure() { parent::configure(); $this->widgetSchema['fotografia'] = new sfWidgetFormInputFileEditable (array( 'file_src' => '/uploads/fotografias_miembros/'.$this->getObject ()->getFotografia(), 'is_image' => true, 'with_delete' => true, )); $this->validatorSchema['fotografia'] = new sfValidatorFile(array( 'required' => false, 'path' => sfConfig::get('sf_upload_dir').'/ fotografias_miembros', 'mime_types' => 'web_images', )); $this->validatorSchema['fotografia_delete'] = new sfValidatorBoolean (); } } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---