Forums

Need instructions on file uploads in repeater areas

joachimliedtke 26 Mar, 2020
I read so many forum posts, but I still do not get this to work. Lets say I have 2 repeater area and each one has a file upload field (single file). What I want is, that the files are attached to the email that is going to be sent. I tried so many things, but nothing worked. Maybe someone has time to guide step to step?

Views
1) Upload switch in settings on or off?
2) Value for Name in repeater area 1?
3) Value for ID in repeater area 1?
4) Value for Name in repeater area 2?
5) Value for ID in repeater area 2?

Actions
1) Email action: I have {AUTO_FIELDS} in body. OK?
2) Are there any values for field Attachment Lists?

Attached is a stripped down version of my not-working form. Any help is appreciated.

​[file=12836]Selbstablesung_26_Mar_2020_15_25_09.cf6bak[/file]
joachimliedtke 26 Mar, 2020
Making progress here, files from different upload fields are uploaded, but only 1 file is attached. I can't get the other to be attached.
healyhatman 27 Mar, 2020
Make sure you put square brackets at the end of the file name if it's a multi select. Like this[]
joachimliedtke 27 Mar, 2020
It seems to be, that I am a complete fool. Still something doing wrong. Sorry for this. Here are some images with the settings. Files are uploaded, but NOT attached to the email. But what is wrong. Please, I need some advice. Thanks in advance.
joachimliedtke 30 Mar, 2020
You mean:
{var:upload2.file[0].path}
? That would imply, that in the case of three images uploaded, TWO should be attached in the mail? But this does not happen unfortunately.
joachimliedtke 30 Mar, 2020
If I fix one problem, I get another. This works:
{var:upload2.file[area_repeater8.key].path}
but only if I remove the Model name in the repeater area setup. By doing so, only the values of the last repeated area will be added in the mail. Does anyone know the correct way to add the Model name to the upper code? I mean, if this would be the solution to my problem.
This topic is locked and no more replies can be posted.