[Flow] Uploading multiple images at once
Daniel Völkel
d.voelkel at medienwuerfel.de
Tue Aug 12 15:24:05 CEST 2014
Hi @all,
in my current project I need to upload up to six images with one form. For usability reasons, I don't want the users to have six different input fields to select their images.
Do you have any hints for me how to realize it with just one input field?
In my model, the property is like this:
/**
* @var \TYPO3\Media\Domain\Model\Image
* @ORM\OneToMany(mappedBy="Angebot")
*/
protected $images;
And my fluid form:
<input type="file" name="newAngebot[images][resource]" id="bilder" multiple />
With this, I get the following error:
Exception while property mapping for target type "My\Package\Domain\Model\Angebot", at property path "images": It is not allowed to map property "resource".
More information about the Flow
mailing list