He seguido el siguiente tutorial https://symfonytricksandcheats.wordpress.com/2015/11/05/subir-multiples-ficheros-a-la-vez/ Y tras seguirlo me devuelve el siguiente error: <pre> Error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Debug\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in /Applications/MAMP/htdocs/miweb/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php:436 Stack trace: #0 [internal function]: Symfony\Component\Debug\ErrorHandler->handleException(Object(Error)) #1 {main} thrown </pre> No termino de entenderlo, lo que sé he visto es que el error está en el controlador, el cual es: <pre> public function createAction(Request $request) { $album = new Album(); $form = $this->createForm(new AlbumType(), $album); $form->handleRequest($request); if ($form->isValid()) { // Handle the uploaded images $files = $form->getData()->getPicture(); // If there are images uploaded if($files != null) { $constraints = array('maxSize'=>'10M', 'mimeTypes' => array('image/*')); $uploadFiles = $this->get('app.fileuploader')->create($files, $constraints); if($uploadFiles->upload()) { $album->setPicture($uploadFiles->getFilePaths()); $em = $this->getDoctrine()->getEntityManager(); $em->persist($album); $em->flush(); $this->get('session')->getFlashBag()->add('notice', 'Las imagenes se han subido con éxito.'); } // If there are file constraint validation issues else { // Check for errors foreach($uploadFiles->getErrors() as $error) { $this->get('session')->getFlashBag()->add('error', $error); } return $this->render('FrontEndBundle:AlbumOld:uploadAlbum.html.twig', array( 'entity' => $album, 'form' => $form->createView(), )); } } } return $this->render('FrontEndBundle:AlbumOld:uploadAlbum.html.twig', array( 'form' => $form->createView() )); </pre> **Twig** <pre> <form action="{{ path('/album-uploader') }}" method="POST" class="add_form" {{ form_Enctype(form) }}> <p> {{ form_label(form.name) }} {{ form_widget(form.name) }} </p> <p> {{ form_label(form.picture) }} {{ form_widget(form.picture, { 'full_name': 'simplex_album[picture]' ~ '[]' } ) }} </p> {% if error is defined %} <ul class="error"> {% for errorMessage in error %} <li>{{ errorMessage }}</li> {% endfor %} </ul> {% endif %} {{ form_rest(form) }} <input type="sumbit" value="Enviar" class="btn btn-success"> </form> </pre> **Album.php** <pre> <?php namespace simplex\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class AlbumType extends AbstractType { /** * * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('name') ->add('ìcture', 'file', array( 'attr' => array( 'accept' => 'image/*', 'multiple' => 'multiple' ), 'data_class' => null ) ); } /** * @param OptionsResolverInterface $resolver */ public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(array( 'data_class' => 'simplex\Entity\Album' )); } /** * @return string */ public function getName() { return 'simplex_album'; } } </pre> Si elimino el código que está en negrita no me da este error, me da otro diferente, pero es el único código que si lo quito cambia el error que me muestra.