my bad, I feel so dumb... I looked for a long time, but did not check if I used the right template, and I wasn't...
sorry for this. On 5 mar, 16:51, MoUeTtE <the.moue...@gmail.com> wrote: > Hi there, > > I just migrated to symfony 1.3, so that could be part of the > explanation, but I can't use the sfWidgetFormInputFileEditable. > > in fact, everything seems to go right as field is displayed, but I've > got an empty value in my doSave method. > > the way I configured my form is the following: > > $this->setWidget('logo', new sfWidgetFormInputFileEditable(array( > 'file_src' => > $this->getObject()->getLogoPath().$this->getObject()->getLogo(), > > 'edit_mode' => strlen($this->getObject()->getLogo()), > 'is_image' => true, > 'with_delete' => false, > ))); > $this->setValidator('logo', new sfValidatorFile(array( > 'required' => false, > 'path' => > sfConfig::get('sf_upload_dir').'/'.$this->getObject()->getLogoPath(), > 'mime_types' => 'web_images' > ), array( > ))); > > widget is displayed, but the $form->isMultipart() does return false, > so the template does not render the enctype="multipart/form-data", and > there is no file bound. > > any idea where it could come from ? > > regards, > > Julien. -- 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