Hi
I think there is a bug. The problem is the same as here:
http://forum.symfony-project.org/index.php/t/18847/
When I use this (from documentation):
$this->form->bind($request->getParameter('article'), $request-
>getFiles('article'));
if ($this->form->isValid())
{
$file = $this->form->getValue('file');
$filename = 'my_filename'.$file->getExtension($file-
>getOriginalExtension());
$file->save(sfConfig::get('sf_upload_dir').'/'.$filename);
$article = $this->form->save();
$this->redirect('article/edit?id='.$article->getId());
}
The file is saved twice on server. One time with my name and one time
with a name generated by symfony. Do you know why?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---