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