Forums

erro message with submit

nickg 11 Feb, 2014
Hello
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
Max_admin 11 Feb, 2014
Hi nick,

Did you delete the delimiter/separator in the file uploads action ? it should be set to "-"

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nickg 12 Feb, 2014
Hello,
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...
nickg 12 Feb, 2014
I looks different docs and vidéos but not attached file and comments with email.
Max_admin 12 Feb, 2014
Did you add the name of the upload file field to the "attachments fields names" box in the email's settings ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nickg 13 Feb, 2014
well sorry I try to understand (but maybe I misunderstood because of language issues)
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 ( )
GreyHead 13 Feb, 2014
Hi nickg,

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
nickg 13 Feb, 2014
well I am lost !
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 ?
nickg 13 Feb, 2014
ok I just added
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 ?
GreyHead 13 Feb, 2014
HI nickg,

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
Max_admin 13 Feb, 2014
it just depends on the name you used for the file field.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nickg 13 Feb, 2014
it is strange because when the name was wrotten like this (see below):
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
nickg 14 Feb, 2014
hello
I have a Validation Errors:

Array
(
)
nickg 14 Feb, 2014
Oops this is debug file

File deleted as requested!
Max_admin 14 Feb, 2014
Answer
There are no validation errors in the debug, your file field name is "file_upload" and so you should use "file_upload" in the "File upload" action and the "Attachments fields names" in the email action.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
nickg 14 Feb, 2014
ok , thank you a lot for your patience,😉
Is not very easy to understand technical word in english
Could you delete the debug file in my last post
Thanks again.
nickg 06 Mar, 2014
hello
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 ,
nickg 06 Mar, 2014
ok I found the solution :
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?
This topic is locked and no more replies can be posted.