[Flow] Uploading multiple images at once
mario chiari
ml at mariochiari.net
Mon Sep 1 19:36:12 CEST 2014
Hi
did you fix that? What about
<input type="file" name="newAngebot[images][]" id="bilder" multiple /> ?
I have the impression fluid is not able to deal with html5 multiple, am
I wrong?
thks
mario
Il giorno mar, 12/08/2014 alle 15.24 +0200, Daniel Völkel ha scritto:
> 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