Forums

Files will not attach to emails

wahoshi 02 Dec, 2012
I have viewed the good tutorials on this issue and have tried everything I can think of to get files to attach to emails or. at the very least, find the place where they could be found on the server.
I am beginning to think my chronoforms 4 installation is corrupt.

For one thing, I keep seeing references to "com_chronocontact" where uploaded files are stored. There is no such component in my Joomla installation, just "com_chronoforms".
Not being a newbie to Joomla, I am fairly sure all the settings, both in the component and in the Joomla php permissions are correct.
I have pasted the debugger file in hopes somebody can give me some insight into what is wrong.
Any help will be much appreciated.
Data Array:

Array
(
[option] => com_chronoforms
[view] => form
[Itemid] => 106
[chronoform] => Photo_upload
[event] => submit
[Name] => Frank Stanton
[Email] => [email]wahoshi@charter.net[/email]
[Event] => test16
[Bargaining_Unit] => att
[Date_of_photo] => 12/02
[chrono_verification] => pm4V7
[Upload] => Upload
[58b9798559ab86bb733515f750fe1b62] => 1
[_PLUGINS_] => Array
(
[upload_files] => Array
(
)

)

)

Validation Errors:

Array
(
)


Debug Data

Core Captcha
Passed the core captcha check!
email
10
Result An email has been SENT successfully from (Photo Upload)admin@cwa9413.com to [email]frank@stantoncreative.com[/email]
Body
Name Frank Stanton
Email [email]wahoshi@charter.net[/email]
Event test16
Bargaining Unit att
Date(s) of Photos 12/02
Photo Upload
Enter the code pm4V7


Submitted by 24.176.180.59
Attachments array ( )
GreyHead 04 Dec, 2012
Hi wahosi,

Please see this FAQ. References to chronocontact are to ChronoForms v3, you can ignore them if you are using CFv4.

Bob
wahoshi 04 Dec, 2012

Hi wahosi,

Please see this FAQ. References to chronocontact are to ChronoForms v3, you can ignore them if you are using CFv4.

Bob



Thank you, Bob,
I had figured the version problem out by the time you got back to me.
However, the problem remains that even a small graphic will not attach to the email. All the settings are set the way you indicated in the FAQ above and the php permissions are set correctly in Joomla.

I don't really need an attachment to the email. I can retrieve the uploaded photos through FTP from the site, if I can just find out where they are. All paths indicated in chronoforms lead me the an empty chronoforms upload folder.

Do I have to create a DB table or something for this to work properly?
Thank you again for your help.

Frank
GreyHead 04 Dec, 2012
Hi Frank,

You don't need a DB table. It may just be a permissions problem . . . Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.

Bob
wahoshi 05 Dec, 2012
Thanks, Bob,
Here is the debugger data. I don't now what you're referring to by "dummy emails", though.
Data Array:

Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => PhotoUpload
    [event] => submit
    [Itemid] => 
    [Name] => Frank Stanton
    [Email] => wxxxi@charter.net
    [Event] => test20
    [Bargaining_Unit] => att
    [Date_of_photo] => 1204
    [upload] => 
    [chrono_verification] => khC8G
    [Upload] => Upload
    [71287b4b8ce33951e7c3bb64496553a5] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)

Validation Errors:

Array
(
)

Thanks for your submission. Watch the Photo Gallery for pictures of your event soon.
Debug Data

    Core Captcha
        Passed the core captcha check!
    email
        10
            Result An email has been SENT successfully from (Photo Upload)admin@cwa9413.com to fxxxk@stantoncreative.com, vxxxh@cwa9413.com
            Body
            Name 	Frank Stanton
            Email 	wxxxi@charter.net
            Event 	test20
            Bargaining Unit 	att
            Date(s) of Photos 	1204
            Photo Upload 	
            Enter the code 	khC8G


            Submitted by 24.176.180.59
            Attachments array ( )

Powered By ChronoForms - ChronoEngine.com
GreyHead 05 Dec, 2012
Hi Frank,

The 'dummy email' I'm after is the bit at the end of the Debugger output that shows what email ChronoForms tried to send.

In this case the Upload Files action is there but the files aren't being uploaded as far as I can see. What do you have in the Fields Configuration box of the action? It should look like upload:png-jpg-pdf depending on what file types you allow.

Bob
wahoshi 05 Dec, 2012
I just had upload:jpg (for simplicity of testing). However, I replaced it with the string above and tested again, to no avail.

The email is directed to the site email, which redirects to my email, currently. It is working fine. I get the email, just no attachment. Here is the latest debugger data:
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => PhotoUpload
    [event] => submit
    [Itemid] => 
    [Name] => Frank Stanton
    [Email] => wahoshi@charter.net
    [Event] => test24
    [Bargaining_Unit] => att
    [Date_of_photo] => 1205
    [upload] => 
    [chrono_verification] => 3ds6B
    [Upload] => Upload
    [f02d74b7c3e2f31d3fef60bfb175e076] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)

Validation Errors:

Array
(
)

Thanks for your submission. Watch the Photo Gallery for pictures of your event soon.
Debug Data

    Core Captcha
        Passed the core captcha check!
    email
        10
            Result An email has been SENT successfully from (Photo Upload)webmaster@cwa9413.com to webmaster@cwa9413.com
            Body
            Name 	Frank Stanton
            Email 	wahoshi@charter.net
            Event 	test24
            Bargaining Unit 	att
            Date(s) of Photos 	1205
            Photo Upload 	
            Enter the code 	3ds6B


            Submitted by 24.176.180.59
            Attachments array ( )


This is the email I get:
Name 	Frank Stanton
Email 	wahoshi@charter.net
Event 	test24
Bargaining Unit 	att
Date(s) of Photos 	1205
Photo Upload 	
Enter the code 	3ds6B


Submitted by 24.176.180.59 


The PHP Cor config:
file_uploads On On
GreyHead 05 Dec, 2012
Hi Frank,

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
wahoshi 05 Dec, 2012
Will do. Thanks, Bob
GreyHead 07 Dec, 2012
Hi Frank,

Sorry it took me a while to get back to this thread.

It looks as though it's working OK now. I moved the Check Captcha action before the Upload Files action and changed the Event Loop to the form On Load event. I think that was all.

I notice that you have the same To and From email address set. This may result in the Email being dropped (GMail certainly will).

Bob

Data Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => PhotoUpload
    [event] => submit
    [Itemid] => 
    [Name] => Name
    [Email] => example@example.com
    [Event] => Event
    [Bargaining_Unit] => Bargaining_Unit
    [Date_of_photo] => Date_of_photo
    [upload] => 20121207103906_test_image.jpg
    [chrono_verification] => jnfve
    [Upload] => Upload
    [d18ba1e9ea8877d52c9e17504436ff64] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [upload] => Array
                        (
                            [name] => 20121207103906_test_image.jpg
                            [original_name] => test_image.jpg
                            [path] => /home5/xxx/public_html/components/com_chronoforms/uploads/PhotoUpload/20121207103906_test_image.jpg
                            [size] => 12597
                            [link] => http://www.xxx.com/components/com_chronoforms/uploads/PhotoUpload/20121207103906_test_image.jpg
                        )

                )

        )

)
Validation Errors: 
Array
(
)
Thanks for your submission. Watch the Photo Gallery for pictuees of your event soon. Debug Data
Core Captcha
Passed the core captcha check!
Upload routine started for file upload by : upload
/home5/xxx/public_html/components/com_chronoforms/uploads/PhotoUpload/20121207103906_test_image.jpg has been uploaded successfully.
email
10
Result
An email has been SENT successfully from (Photo Upload)webmaster@xxx.com to webmaster@xxx.com
Body
Name	 Name
Email	 example@example.com
Event	 Event
Bargaining Unit	 Bargaining_Unit
Date(s) of Photos	 Date_of_photo
Photo Upload	
Enter the code	 jnfve


Submitted by 2.12.123.227
Attachments
array ( 0 => '/home5/xxx/public_html/components/com_chronoforms/uploads/PhotoUpload/20121207103906_test_image.jpg', )
wahoshi 08 Dec, 2012
Thanks, Bob,
From one Greyhead to another, exceptional Support! I will remember what was done here and will be installing Chronoforms on all future sites. Subscription for this one is on it's way.
I notice that the jpg is also stored in the uploads file.

Have a great holiday season!

Frank
wahoshi 08 Dec, 2012
By the way, I am aware that G-mail's mail servers have an issue with sending and receiving the same email address. Like all "free" webmail, G-mail is far too limited for me. That's one of the reasons I avoid it at all costs.🤣

Cheers,
Frank
yajs420 11 Dec, 2012
hi there, i seem to be having the same issue and have spent around 5 hours trying to fix it. however is it just possible that someone can instruct me (whether via ftp or html page) as to how i can access this "server" that holds my uploads? ive basically given up on having the attachments emailed to me. ive successfully set up two forms both are programmed fine for submitting text information however one of my submission forms is suppose to upload files. ive run over a dozen test dummy submissions which included small jpg files and ive been successful about twice, heres the info that i have.

my preview screen has sever text boxes, text areas, a drop down box, and a file upload box
in the configuration of file upload , both field name AND field ID reads "file_upload"

in the events and under "on submit" i have the following in this order:
upload files
-on success
-on fail
check captcha
-on success
-on fail
Email
Redirect User


for configuration on upload files..... it IS enabled, i have the following input in the fields configuration box .....
"file_upload:jpg-png-gif-zip-rar-pdf-doc-txt"

also the upload path is blank


under email configuration

is is enabled
action label is blank
send as html
attachments field name is set to "file_upload1"


ive generated an auto template

and static info is set correctly obviously because i receive the email ..... just without any attachments :?


im almost certain i am doing this correctly as ive watched Greyhead's 2:47 video long enough to recite it and create a closed caption menu for it. i just dont know why it isnt working. again if you notice an error on my part then please inform me but if not, can you instruct me on how to simply access the server. i have no problem manually downloading my files if necessary. and as far as buying you a beer ..... i hope you enjoy Heineken because i have a keg waiting with you name on it once we get this issue corrected. thanks greyhead. your doing an awesome job on this site. if you need me to debug any information let me know.

i am using joomla 2.5 / chronoform 4.0 RC3.5.2 . im glued to the computer if you need any additional info from me. thanks in advance!
GreyHead 12 Dec, 2012
Hi yajs420,

I can see that you have used different input names: file_upload:jpg-png-gif-zip-rar-pdf-doc-txt and attachments field name is set to "file_upload1"

I expect that they should both be the same.

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.

Bob

PS I'd put the Check Captcha action before the Upload Files action.
yajs420 12 Dec, 2012
sir greyhead, you've done it again. your few suggestions were correct. i changed anywhere on the file that said "file_upload" to "file_upload1" and also switched the check captcha to reside over the submit url box , and guess who is getting attachments now ?????!!!!! thank you very much my good sir. if your ever in dallas , please have a drink with me! ill seriously consider paypal donations for your cause. one more quick question ...... how can i access the previous upload on the joomla server,..... you know .... the uploads that i used for test email that never arrived to my inbox. is this possible ?
GreyHead 14 Dec, 2012
Hi yajs420,

They should be in whatever folder you have set for the uploads, probably components/com_chronoforms/uploads

Bob
ethanolic 24 Apr, 2013
Hi Greyhead

I have the same issue the multi file upload is not uploading the files at all, here is the debug information. The site is here http://asiaservicedoffices.com/index.php?option=com_chronoforms&tmpl=component&chronoform=Listyourspace
I have read the information and cross checked it. Hope you can help ! thanks

Field name :attachments_18[]
field configuration : attachments_18:jpg-jpeg-png-gif
upload path : JOOMLA_PATH/images/uploads

Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Listyourspace
[event] => submit
[Itemid] =>
[Country] => Singapore
[CompanyName] => qweqe
[PropertyAddress] => qweqwe
[Website] =>
[Salutation] => Mr
[Name] => qwfsd
[Email] => [email]sdfsf@sdqweqe.com[/email]
[Contact] => 11122
[attachments_18] => Array
(
[0] => proj8.jpg
[1] => proj13.jpg
)

[multi_upload_limit_attachments_18] => 2
[Details] => qweqweqe
[Terms] => 1
[chrono_verification] => 9LUGp
[input_submit_17] => Submit
[120b2900de4bfc54ddba8cf2b13be23d] => 1
[_PLUGINS_] => Array
(
[upload_files] => Array
(
)

)

)
Validation Errors:
Array
(
)
GreyHead 24 Apr, 2013
Hi ethanolic,

Are you using the standard Upload Files action? Then please check the input name settings against this FAQ it's important where the [] are added or left out.

Bob
wahoshi 13 Jun, 2013
Well, here we are again. The last time it was v3, this time it's v4. I know I'm doing something wrong. Files are not attaching to emails...although they are going in to the folder indicated in the folder indicated. Everythign is working perfectly except the file attachement.
Here is the debugger data, and, once again I thank you for your help.

Data Array:

Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => Careers
    [event] => submit
    [Itemid] => 
    [Name] => Frank Stanton
    [E-mail] => wahoshi@charter.net
    [Phone] => 775 354 0580
    [upload_resume] => 20130613060546_Resume2013.pdf
    [Message] => test of file attachment
    [chrono_verification] => zPewg
    [input_submit_6] => Submit
    [e6dc0e9f8e57319afb448e3785c48471] => 1
    [_PLUGINS_] => 20130613060546_Resume2013.pdf,Resume2013.pdf,/home8/jobsfor4/public_html/components/com_chronoforms/uploads/Careers/20130613060546_Resume2013.pdf,11749,http://jobsfordyslexics.org/components/com_chronoforms/uploads/Careers/20130613060546_Resume2013.pdf
)

Validation Errors:

Array
(
)

Thank you for interest in helping us, Frank Stanton.

We will get back to you as quickly as possible.
Debug Data

    Core Captcha
        Passed the core captcha check!
    Upload routine started for file upload by : upload_resume
    /home8/jobsfor4/public_html/components/com_chronoforms/uploads/Careers/20130613060546_Resume2013.pdf has been uploaded successfully.
    email
        10
            Result An email has been SENT successfully from (JFD Admin)admin@jobsfordyslexics.org to n.karnsjohnson@jobsfordyslexics.org
            Body
            Name 	Frank Stanton
            E-mail 	wahoshi@charter.net
            Phone 	775 354 0580
            Upload Resume - (Word doc or PDF) 	20130613060546_Resume2013.pdf
            Message 	test of file attachment
            Enter the code 	zPewg


            Submitted by 71.83.106.10
            Attachments array ( )

Powered By ChronoForms - ChronoEngine.com
GreyHead 13 Jun, 2013
Hi wahoshi,

Well, one problem is that you have (I think) a Handle Arrays action after the Upload Files action which is mangling the _PLUGINS_ results, please move this up before the Upload Files action.

Do you also have something in the Email action Attachments box?

Bob
ronjb 08 Jul, 2013
Awesome Got the Multi Upload Working.. Took me a while though..

I'm not sure but i think the Form Wizard Mode should be set to Advance(Default), i tried using easy but i couldn;t get no where

[list]1: On the Elements tab drag a copy of the widget from the Widget elements group into the Preview box.[/list]
[list]2: Set the element name - including the [], the number of file uploads you want to allow and any other settings you need.[/list]
[list]3: On the Actions tab drag an Upload Files action into the On Submit event.
- this one is confusing cause there is a Upload Files in the core action but the one that had worked is the Multi Upload Action from the Widget Processors..[/list]
[list]4: Configure the Upload Files action as normal adding the name of the Multi File Upload *without the []* in the Fields Configuration box with the file types and also on the Advanced tab in the Array Fields box.
- this one also confused me too, on which one you were talking about, the Upload Files or Multi Upload, so i did some trial and error and had Multi Upload on my submit action with fields Configuration:"attachments_15:jpg-png-gif,attachments_15[]:jpg-png-gif", I'm not sure which one had worked thought,lol[/list]
[list]5. If there are no other File elements in your form you will need to add enctype="multipart/form-data" into the Form tag attachment box on the Form General tab (click the Form Name link in the Forms Manager to open it).
- and this one is a MUST![/list]

Hopefully other users would have a better understanding.. cause for me it was a bit confusing..

Thanks Again Mr. Greyhead
GreyHead 08 Jul, 2013
Hi ronjb,


Yes, it you can't do this with the Easy Form Wizard :-(

I'll check the FAQ later when I have some time - I don't think I knew that there was a multi-upload action when I wrote it.

Bob
ronjb 08 Jul, 2013
Hi Greyhead

Just want to let you know that I'm using Version 4.0, maybe you were using a diff. version when you wrote it..

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