I'm trying to understand how chronoform works. I'm beginner with ChronoForms. I created a form:
name, ,e-mail, upload file, comments, submit
I tried to set up as well as possible, I get an error:
Warning: explode() [function.explode]: Empty delimiter in /home/xxxxxxx/administrator/components/com_chronoforms5/chronoforms/actions/file_upload/file_upload.php on line 78
Warning: Invalid argument supplied for foreach() in /home/xxxxxx/administrator/components/com_chronoforms5/chronoforms/actions/file_upload/file_upload.php on line 80
Merci pour votre trajet , votre message a été envoyé,
thanks for your help
Did you delete the delimiter/separator in the file uploads action ? it should be set to "-"
Regards,
Max
Thank for your answer . After some time I found this option it is ok now . no error
For test, I send an email to myself with an attached file and comments. When I received the email there was only name et email information. No comments no file...
I did what you told me but not file attached to email http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2676-how-can-i-attach-uploaded-files-to-an-email.html
It will be to betterto understand with pictures :
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => formulaire
[event] => submit
[input_text_1] => gh
[input_text_2] => toto@rru.fr
[input_textarea_3] => ftyftyfyft
[file_upload] =>
[input_submit_5] => Submit
[adc4a24e294349869912929bc6816d74] => 1
[_PLUGINS_] => Array
(
[upload_files] => Array
(
)
)
)
Validation Errors:
Array
(
)
merci
Debug Data
email
1
Result An email has been SENT successfully from (du site aV)noreply@xxx.fr to nick@yxxx.fr.org
Body
Nom -prénom gh
Email toto@rru.fr
Commentaires ftyftyfyft
fichier
Submitted by 80.11.150.238
Attachments array ( )
I added the Debugger output to your post. If you look at it you will see that the name of the file input is file_upload but in the images you posted you have used file_upload_1 Please check to make sure that they are all the same.
Bob
I putted the same name of the file
upload file : Fields Configuration = file_upload_1:pdf-jpg-gif-png
email : Attachments fields name = file_upload_1
There is an other field to complete ?
upload file : Fields Configuration = file_upload:pdf-jpg-gif-png
email : Attachments fields name = file_upload
so it works now
If I understood , I must write "file_upload" not an other name , that's right ?
You must write the name of the File Upload element in your form. If that is xxggrr17q, then you use xxggrr17q:jpg-png-gif-pdf in the Upload Files action and xxggrr17q in the Email action Attachments box.
Bob
Regards,
Max
upload file : Fields Configuration = file_upload_1:pdf-jpg-gif-png
email : Attachments fields name = file_upload_1
it was not work, It is the reason why I wrotten file_upload
Regards,
Max
Is not very easy to understand technical word in english
Could you delete the debug file in my last post
Thanks again.
I do not think I did something wrong but the attached files go directly to JOOMLA_PATH/components/com_chronoforms/uploads/FORm_NAME/
It seems to me that before the file was attached to email
what I disabled ,
https://www.chronoengine.com/forums/posts/f2/t90922/file-not-attached-to-the-mail--but-saved-in-the-folder.html?hilit=attached+file
You also need to make sure that the actions are in a sensible order - so, for example, the Upload Files action needs to be before the Email action.
It is not obvious to know all these technical aspects for a beginner like me . How I know all this information?
