Open typo3ua opened 5 years ago
At the moment it is only possible to add one image.
If you need more images, pull requestes are very welcome.
I think that you are can use for this feature something from here... ext:repeatable_form_elementss
Any news on this feature? I have a project where adding more than on image would be very useful. Since there is a help wanted sticker, I took a quick look at the code - I didn't have much time to take a closer look or even to try, but uploading multiple images is possible fluid-wise and your upload helper class even loops thru images.
Could you please state what the major obstacle seem to be (if you find time, of course) - so maybe I could help.
@ceekay73 It would be still nice to implement this feature, but I just didn't have time so far and I don't have it within the next two months :-(
The loop in initializeFileUpload()
just loops through the possible file upload fields, which is falMedia
and falRelatedFiles
at the moment. So the loop would need to be extended with another loop. which catches falMedia[0]
and falRelatedFiles[0]
. But this leads to various other needed changes including the preview of images with firstFalMedia
which would not work any more.
Thanks for the additional info. I did play around over the weekend a bit and came across the things you mentioned. In my (very early) version, I'm now able to upload serveral images - editing and deleting is another part I would have to look at, but at the moment my time is very limited as well. I'll post some more info as it progresses.
I would love to see this feature as well. And I would be happy if uploading would work. @ceekay73 How did you get that running?
@AureliusHogan: Basically, I did just what @cdaecke mentioned - iterating the upload fields in the template and giving it numbers and then change the controller to handle that. It works for the project I nedded it for, but it's not very well documented an would still need a lot of cleanup to be used more generally - thats why I'm very hesitant to upload it to github, since I woldn't be able to handle requests or questions due to limited time.
I think that is good solution for that ... Filepond 4.19.2 (Github) for example, this JS is used in this TYPO3 extension: jobapplications in BE & FE
If I need add more than one image from frontend form. How to do it?
How about feature adding more than one image?