Hi, [file=https://goebelmedia.de/downloads/Unfallbericht_11_Feb_2022_09_58_03.cf6bak]Form - File config is empty[/file]
I'm currently creating a multi-page-form. Unfortunately the file upload does not work.
The fields for the upload are on the back of the 8 form pages.
As soon as I switch from page 1 to page 2, the error message appears. "file config is empty". Otherwise nothing else is displayed.
"Upload files" is activated in settings-tab. If I disable this the form works but the file upload doesn't.
If I set the two upload fields on page 1 of the form, the upload works, Both, the upload and the entire form including mailing with attachment.
Unfortunately, putting the fields on the first page can not be permanent solution.
I've attached the completed form.
Maybe someone will find my mistake.
Chris
I'm currently creating a multi-page-form. Unfortunately the file upload does not work.
The fields for the upload are on the back of the 8 form pages.
As soon as I switch from page 1 to page 2, the error message appears. "file config is empty". Otherwise nothing else is displayed.
"Upload files" is activated in settings-tab. If I disable this the form works but the file upload doesn't.
If I set the two upload fields on page 1 of the form, the upload works, Both, the upload and the entire form including mailing with attachment.
Unfortunately, putting the fields on the first page can not be permanent solution.
I've attached the completed form.
Maybe someone will find my mistake.
Chris
Hi Chris,
Is sounds as though the auto file upload may not work with a multi page form. I suggest that you turn that off and add an Upload Files action to the final 'submit' page of the form instead.
Bob
Is sounds as though the auto file upload may not work with a multi page form. I suggest that you turn that off and add an Upload Files action to the final 'submit' page of the form instead.
Bob
Hey bob,
I tried your tip. Unfortunately that doesn't work either.
At the end of the form, after submitting, the same error message comes up.
The email will be sent with all form content but without the attachments.
Any ideas?[file=https://goebelmedia.de/downloads/form-file-config-empty.zip]Multi-Page-Form[/file]
Chris
I tried your tip. Unfortunately that doesn't work either.
At the end of the form, after submitting, the same error message comes up.
The email will be sent with all form content but without the attachments.
Any ideas?[file=https://goebelmedia.de/downloads/form-file-config-empty.zip]Multi-Page-Form[/file]
Chris
Hi Chris,
I tested that form as far as the first file upload and that seemed to be OK - didn't give me any error messages. After that the form made my eyes cross so I didn't go any further.
I suggest that you try turning form Debugging on and see if that gives you any clues.
Bob
I tested that form as far as the first file upload and that seemed to be OK - didn't give me any error messages. After that the form made my eyes cross so I didn't go any further.
I suggest that you try turning form Debugging on and see if that gives you any clues.
Bob
Hey Bob,
here's the result:
here's the result:
Array ( [option] => com_chronoforms6 [cont] => manager [chronoform] => unfallbericht-copy [event] => submit [ich_habe_alle_angaben_korrekt_angegeben] => Checked [button9] => [3a581968e54c991c3403b0455253bfc5] => e765d80246453fab60f6ef57d3976771 [3750b4b264e9a46664062db77d9f990b] => 611eafc0d4623d0ffecf0db5e92b305c [Unfalltag] => 01-01-1990 [Unfalluhrzeit] => 12:00 [polizeilich_aufgenommen] => Nein [Zeugen] => Nein [name_zeuge] => [button1] => [name] => John Doe [anschrift] => John Doe Street 1 [plz_ort] => 12345 John Doe City [telefon] => 1223456 [kommunikation_email] => Nein [email] => [vorsteuerabzugsberechtigt] => Nein [geleast] => Nein [finanziert] => Nein [button2] => [geldinstitut] => Bank [iban] => DE123456789 [button3] => [rechtschutzversicherung] => Nein [versicherung] => [versicherungsscheinnr] => [button4] => [name_fahrer] => Julia Doe [anschrift_fahrer] => Julia Doe Street 10 [plz_wohnort_fahrer] => 12345 Julia Doe City [geburtsdatum_fahrer] => 01/01/1990 [button5] => [unfallbeschreibung] => Lorem ipsum dolor [file1] => upload.JPG [button6] => [kfz_kennzeichen] => ABC-DE-123 [name_halter] => Jim Doe [anschrift_halters] => Jim Doe Street 100 [automarke_typ] => BMW [versicherung_gegner] => Insurance [vericherungsscheinnummer_gegner] => 123456789 [gruene_karte] => 123456789 [name_des_fahrers_gegner] => Jim Doe [anschrift_des_fahrers_gegner] => Jim Doe Street 100 [button7] => [file2] => cf6manual-1.0.2.pdf [button8] => )
Array ( [submit_validate_fields] => Array ( [log] => Automatische Überprüfung aktiviert. [var] => 1 ) [upload12] => Array ( [path] => /var/www/web23855969/html/0168_kanzlei_milch/components/com_chronoforms6/chronoforms/uploads/ [var] => ) [email10] => Array ( [recipients] => Array ( [0] => chris@goebelmedia.de ) [subject] => Neue Unfallmeldung eingegangen [body] => <table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Unfalldaten</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Tag des Unfalls</strong></td> </tr> <tr> <td style="padding:7px;">01-01-1990</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Uhrzeit des Unfalls</strong></td> </tr> <tr> <td style="padding:7px;">12:00</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Wurde der Unfall polizeilich aufgenommen?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Gibt es Zeugen?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Name des/der Zeugen</strong></td> </tr> <tr> <td style="padding:7px;"></td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Persönliche Daten</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Name</strong></td> </tr> <tr> <td style="padding:7px;">John Doe</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Anschrift</strong></td> </tr> <tr> <td style="padding:7px;">John Doe Street 1</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>PLZ + Wohnort</strong></td> </tr> <tr> <td style="padding:7px;">12345 John Doe City</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Telefon</strong></td> </tr> <tr> <td style="padding:7px;">1223456</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Sind Sie mit der Kommunikation per E-Mail einverstanden?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>E-Mail</strong></td> </tr> <tr> <td style="padding:7px;"></td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Sind Sie vorsteuerabzugsberechtigt?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Ist ihr Fahrzeug geleast?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Ist ihr Fahrzeug finanziert?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Bankverbindung</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Geldinstitut</strong></td> </tr> <tr> <td style="padding:7px;">Bank</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>IBAN</strong></td> </tr> <tr> <td style="padding:7px;">DE123456789</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Rechtschutzversicherung</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Besteht eine Rechtschutzversicherung?</strong></td> </tr> <tr> <td style="padding:7px;">Nein</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Versicherung</strong></td> </tr> <tr> <td style="padding:7px;"></td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Versicherungsschein-Nummer</strong></td> </tr> <tr> <td style="padding:7px;"></td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Angaben zum Fahrer</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Name</strong></td> </tr> <tr> <td style="padding:7px;">Julia Doe</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Anschrift</strong></td> </tr> <tr> <td style="padding:7px;">Julia Doe Street 10</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>PLZ + Wohnort</strong></td> </tr> <tr> <td style="padding:7px;">12345 Julia Doe City</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Geburtsdatum</strong></td> </tr> <tr> <td style="padding:7px;">01/01/1990</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Angaben zum Unfallhergang</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Unfallbeschreibung</strong></td> </tr> <tr> <td style="padding:7px;">Lorem ipsum dolor</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Unfallskizze hochladen (optional)</strong></td> </tr> <tr> <td style="padding:7px;">upload.JPG</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Angaben zum Unfallgegner</h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>KFZ Kennzeichen</strong></td> </tr> <tr> <td style="padding:7px;">ABC-DE-123</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Name des Halters</strong></td> </tr> <tr> <td style="padding:7px;">Jim Doe</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Anschrift des Halters</strong></td> </tr> <tr> <td style="padding:7px;">Jim Doe Street 100</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Automarke / Typ</strong></td> </tr> <tr> <td style="padding:7px;">BMW</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Versicherung</strong></td> </tr> <tr> <td style="padding:7px;">Insurance</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Vericherungsschein-Nummer</strong></td> </tr> <tr> <td style="padding:7px;">123456789</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Nummer grüne Karte</strong></td> </tr> <tr> <td style="padding:7px;">123456789</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Name des Fahrers</strong></td> </tr> <tr> <td style="padding:7px;">Jim Doe</td> </tr> </table> </td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Anschrift des Fahrers</strong></td> </tr> <tr> <td style="padding:7px;">Jim Doe Street 100</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <h2 style="padding:0px 7px;">Vollmacht<div class="sub header">Um für Sie tätig zu werden, benötigen wir bitte eine unterschriebene Vollmacht von Ihnen.</div></h2></td></tr> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Vollmacht hochladen</strong></td> </tr> <tr> <td style="padding:7px;">cf6manual-1.0.2.pdf</td> </tr> </table> </td></tr></table><table width="100%" cellpadding="0" cellspacing="0" border="0" class="" style="border:3px solid #e2e2e2; border-collapse:separate; border-radius:7px;"> <tr><td width="100%" style="padding:5px; border-bottom:1px solid #e2e2e2;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr style="background-color:#fafafb"> <td style="padding:7px;"><strong>Ich habe alle Angaben korrekt angegeben.</strong></td> </tr> <tr> <td style="padding:7px;">Checked</td> </tr> </table> </td></tr></table> [result] => die Mail wurde erfolgreich gesendet. [var] => 1 ) )
Hi Chris,
The debug shows that both file names were submitted, and a path was created but the results didn't get into the final form data.
Do you have Auto Upload File Fields enabled? It doesn't appear to be in the version I downloaded.
Are there any files in the Uploads folder?
Also the CF Manual has a file name with . in it - I guess that might cause a problem with the file type validation.
Bob
The debug shows that both file names were submitted, and a path was created but the results didn't get into the final form data.
Do you have Auto Upload File Fields enabled? It doesn't appear to be in the version I downloaded.
Are there any files in the Uploads folder?
Also the CF Manual has a file name with . in it - I guess that might cause a problem with the file type validation.
Bob
Hey bob,
Auto Upload File Fields are enabled.

When Auto Upload File Fields is enabled, thats the result switching to page 2...

There are no files in the Uploads folder.
I also tried other files with simple filenames like "upload.jpg" -> same result.
Any more ideas?
Chris
Auto Upload File Fields are enabled.
When Auto Upload File Fields is enabled, thats the result switching to page 2...
There are no files in the Uploads folder.
Also the CF Manual has a file name with . in it - I guess that might cause a problem with the file type validation.
I also tried other files with simple filenames like "upload.jpg" -> same result.
Any more ideas?
Chris
Hi
Don't use "Auto upload". Desactive it.
Keep File Field, then use Action Upload Element in you last submit page.
Auf wiederzen
Don't use "Auto upload". Desactive it.
Keep File Field, then use Action Upload Element in you last submit page.
Auf wiederzen
Hey Colnem, thanks for your reply
[file=https://goebelmedia.de/images/file_config_is_empty.pdf]PDF PreView[/file]
The debug shows that both file names were submitted, and a path was created but the results didn't get into the final form data.
email has no attachment. Also no files on server.
regrards
chris
Don't use "Auto upload". Desactive it. Keep File Field, then use Action Upload Element in you last submit page.Unfortunately the same result. After submitting the form the error-message appears: "file config is empty. See pdf preview
[file=https://goebelmedia.de/images/file_config_is_empty.pdf]PDF PreView[/file]
The debug shows that both file names were submitted, and a path was created but the results didn't get into the final form data.
email has no attachment. Also no files on server.
regrards
chris
Hi
If you don't want that file is uploaded in page 6, you have to disable "Upload Files" in general settings of the form.
So I've loaded your form, tried.... and it doesn't work if View File Field is not in the last page.
You can see that data:file1 is know, but upload 12 is unknow.
It works only in Autoload mode, but the file is loaded after submit page6.
You're right, this is a bug.
If you don't want that file is uploaded in page 6, you have to disable "Upload Files" in general settings of the form.
So I've loaded your form, tried.... and it doesn't work if View File Field is not in the last page.
You can see that data:file1 is know, but upload 12 is unknow.
It works only in Autoload mode, but the file is loaded after submit page6.
You're right, this is a bug.
So I haven't found a solution to the issue yet.
But I have now found a way around how the form works for me:
The uploads are now all on the last page, so the data upload works. Auto Upload File Fields are deactivated.
It's not what I really wanted, but at least that's how it works.
Regards Chris
But I have now found a way around how the form works for me:
The uploads are now all on the last page, so the data upload works. Auto Upload File Fields are deactivated.
It's not what I really wanted, but at least that's how it works.
Regards Chris
You need to login to be able to post a reply.