Hi,
I'm trying to make a form to add Info to an User with an avatar
I'm created a file field and works correctly, I'm create the form at
this way.
$form = $this->get('form.factory')
->createBuilder('form', $userInfo)
->add('name', 'text')
->add('last_name', 'text')
->add('avatar', 'file')
->getForm();
The problem is when I recover the form with the data of the database,
as the avatar file path is not correct on your computer.
The file "/uploads/avatar200/avatar1.jpg" does not exist
there is some way to avoid this error or validation?
Thank you.
--
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 [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