symfony2 how to upload file without doctrine?
After submitting the form, move the file to your desired directory and you will get a File
object in return.
foreach($request->files as $uploadedFile) { $name = //... $file = $uploadedFile->move($directory, $name);}
Take a look at the API-Manual for the full featured documentation of this class.