IphpFileStoreBundle
IphpFileStoreBundle copied to clipboard
Multiple upload
Hi.
Is it possible to handle multiple file upload in that easy way?
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'
));
....