I’m trying to upload multiple files via a form, but I can only upload one file at a time, the last one I mark in the browser. Is there a way to upload more images with Symfony2 using a simple form?
Here is the twig template of the form I’m using to be able to mark more than one file:
{{ form_widget(form.post_image, { 'attr': {'multiple': 'multiple' }}) }}
No extra classes needed (except the gallery_manger service but the issue you describe happens before…)
I don’t really know what’s wrong. Check for your template (maybe wrong enctype… or name attr missmatching)
first try to do a single file upload, check the documentation:
Once it works, you have to edit some lines.
create…[] because my form class name is create, if your is
createType it will be createType…[])
Copy/paste your code here.