Chronoforms5 does not upload files

How to fix ChronoForms 5 file uploads not working.

Overview

The issue occurs when the Array fields setting in the Upload Files action is left empty.
Configure the Array fields setting in the Upload Files action to properly map the file input names from your form.

Answered
Ni Nielsterp 26 Jul, 2017
Hi there,

I have been using the standard upload example, but I cannot get it to work.

I can select the files, on submit no files are uploaded, and no files is shown in the email I have set up.

Debug info:

Array
(
[option] => com_chronoforms5
[chronoform] => volunteer_application
[event] => submit
[first-name] => Niels
[family-name] => Terp
[address] => Tranegatan 3 Lgh 1101
[zipcode] => 26135
[city] => Landskrona
[country] => Sweden
[email] => nielsterp@comhem.se
[file1] => Submit
[ip_address] => 80.216.128.189
)

Array
(
)

Errors
Array
(
)

Debug Info
Array
(
[3] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:volunteer_application@c24foundation.org
[2] => Subject:Volunteer Application Form
[3] => From name:Niels Terp
[4] => From email:nielsterp@comhem.se
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Array
(
)

[11] => Body:
<table>
<tbody>
<tr>
<td>Given name</td>
<td>Niels</td>
</tr>
<tr>
<td>Family name</td>
<td>Terp</td>
</tr>
<tr>
<td>Address</td>
<td>Tranegatan 3 Lgh 1101</td>
</tr>
<tr>
<td>Zip-code</td>
<td>26135</td>
</tr>
<tr>
<td>City</td>
<td>Landskrona</td>
</tr>
<tr>
<td>Country</td>
<td>Sweden</td>
</tr>
<tr>
<td>Email</td>
<td>nielsterp@comhem.se</td>
</tr>
<tr>
<td>File label</td>
<td> </td>
</tr>
</tbody>
</table><br /><br />IP: 80.216.128.189
)

)

)
Gr GreyHead 27 Jul, 2017
Hi Nielsterp,

How do you have the Upload Files action configured?

Bob
Ni Nielsterp 27 Jul, 2017
Answer
1 Likes
Enabled: Yes
Files config:
file1:jpg-png-pdf-docx
file2:jpg-png-pdf-docx
file3:jpg-png-pdf-docx
file4:jpg-png-pdf-docx
file5:jpg-png-pdf-docx
Upload path: Empty (a folder is created on the server, but it is empty after upload)
Max file size: 10000
Min file size: 0
Max size error: Sorry, Your uploaded file size exceeds the allowed limit.
Min size error: Sorry, Your uploaded file size is less than the minimum limit.
File type error: Sorry, Your uploaded file type is not allowed.
Array fields: Empty
File name code: <?php return date("YmdHis")."_".$file_name;
Extension separator: -

I must have overlooked the Array fields field, when I filled it in properly, everything worked !

Thank you for pointing me in the right direction (again !)

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