Forums

CFv4 Multiple file uploads problems

capeinfo 10 Mar, 2012
Hi

Help! I'm tearing my hair out after struggling with this all day. Joomla 1.5.23, CFv4_RC3.21

I want to allow multiple file uploads but only the last upload actually takes place. I've tried using different permutations of the variables in the file upload settings, such as field ID = file_upload2 for the second upload.

[attachment=0]chronoforms.gif[/attachment]

What settings should I be using? The form is at http://capeinfo.com/index.php?option=com_chronoforms&chronoform=AddBusinessRequest with debugging on. (It's not linked from the menu for public access.)

Thanks
Carl
GreyHead 11 Mar, 2012
Hi capeinfo,

You must give the inputs different names* e.g fileupload_1 and fileupload_2 otherwise the second input overwrites the first.

Bob

*The IDs should also be unique but that isn't the immediate problem here.
capeinfo 11 Mar, 2012
Thanks for a Sunday reply, Bob

I tried that but now just the first image uploads. I though that might be because, in the action settings, I have "file_upload:jpg-png-gif" for the files permissions setting. I tried just "jpg-png-gif" but then nothing works.

For image 1, I have:
Field name = file_upload
Field ID = file_upload

For image 2, I have:
Field name = file_upload_2
Field ID = file_upload

What am I doing wrong? (There's also no error message for the unsent file.)

Carl
GreyHead 11 Mar, 2012
Hi capeinfo,

You need the action settings for both upload inputs
file_upload:jpg-png-gif;file_upload_2:jpg-png-gif

Bob
This topic is locked and no more replies can be posted.