I have a basic form with a file upload field. The upload and persistence 
work fine, but is there a standard or recommended way to handle editing this 
object? Using the the same form type always wants a new file to be uploaded. 
I would expect the default to just display the pathname if there is already 
a file on the object, but this doesn't seem to be the case.



class TrackType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('artist', new ArtistType());
        $builder->add('title');
        $builder->add('description', 'textarea', array('required' => 
false));
        $builder->add('file_name', 'file', array('type' => 'string'));
        
    }
}

-- 
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

Reply via email to