'', 1 => '', 2 => '20130629102439_Fotolia_34726084_XS.jpg', ) so how can i attach both images to the email?regards,"> How to add two upload fields and attach it to email - Forums

Forums

How to add two upload fields and attach it to email

oracle 29 Jun, 2013
Hello all,

i have created a multipage form with 3 pages. On page 3 i have added two upload fields. Both field names are "file_upload" but with differend id´s (file_upload and file_upload1). In the upload files action i put this in the Array Fields "file_upload". The images are saved at the server (works fine).

Attached you can see a screenshot from the email:
Bild upload: array ( 0 => '', 1 => '', 2 => '20130629102439_Fotolia_34726084_XS.jpg', )

so how can i attach both images to the email?

regards,
GreyHead 29 Jun, 2013
Hi oracle,

The simplest solution is to give the file upload inputs different names. Is there a special reason for having them the same?

Bob
oracle 30 Jun, 2013
Ok, i have changed the names of both files.

1. fieldname =file_upload
2. fieldname =file_upload1

I have one action "upload files" and put in the array field (advanced tab) this: file_upload:file_upload1

But only the first file is uploaded to the server and both files are not attached to email.

Whats wrong?

Best regards,
Sascha
GreyHead 01 Jul, 2013
Hi sascha,

There is no array any more so I don't think that you need anything in the 'array field'.

It should be enough to add file_upload,file_upload1 to the Attachments box of the Email action.

Bob
oracle 02 Jul, 2013
solved!

many thanks for you great support!
This topic is locked and no more replies can be posted.