title: symfony2 how to upload file without doctrine?
body: <p>Is it possible to upload files in symfony2 WITHOUT using doctrine? With doctrine, its example is given here: <a href="http://symfony.com/doc/2.2/cookbook/doctrine/file_uploads.html">http://symfony.com/doc/2.2/cookbook/doctrine/file_uploads.html</a></p>
  
  <p>Is there a simple way to upload files, like in core PHP we have move_uploaded_file() function with which we can move the uploaded to file after the form is submitted.</p>
  
  <p>For now when I submit the form in symfony this is what I get in 'files' section of request array (Symfony\Component\HttpFoundation\Request)</p>
  
  <pre><code> [files] =&gt; Symfony\Component\HttpFoundation\FileBag Object
          (
              [parameters:protected] =&gt; Array
                  (
                      [upload_cover] =&gt; Symfony\Component\HttpFoundation\File\UploadedFile Object
                          (
                              [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; 
                              [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; secret_of_success.png
                              [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; image/png
                              [size:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; 157958
                              [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; 0
                              [pathName:SplFileInfo:private] =&gt; C:\xampp\tmp\php3636.tmp
                              [fileName:SplFileInfo:private] =&gt; php3636.tmp
                          )
  
                  )
  
          )
  </code></pre>