Open cve opened 10 years ago
May be it helps you if you want to have as multiple upload so multiple created fields
foreach ($form->getData()->getPhoto() as $index => $photo) {
$photoItem = new Photo();
$photoItem->setPhoto($photo);
$em->persist($photoItem);
}
$em->flush();
And only mark photo field in Form Builder as multiple
...
->add ('photo', 'file', array(
'multiple' => 'multiple'
));
....
Hi.
Is it possible to handle multiple file upload in that easy way?