I've followed this guide : http://symfony.com/doc/current/reference/forms/types/file.html
and tested the sample here
However when I try the code, I have an error :
Call to undefined method Symfony\Component\Form\Form::move()
This is happening with the line :
$form['attachment']->move($dir, $someNewFilename);
I wonder why there is this error ?