Forums

ChronoForms upload file not sending to e-mail

dinja 18 Feb, 2014
First of all , I apologize that I had to start a new topic. But I must mention that I have tried to resolve this by myself, looking for answer and solution for my issue but I didn't manage to resolve it on my own.

I have set up the form which can be found here: http://njgladiatorsoccer.com/index.php/component/k2/item/347. It has three upload fields but the uploaded files are not attached and sent to the email.

I have followed all possible solutions I could find (files upload action is enabled, I have also added name of the fields under attachment part of e-mail action.

Here is the result of debugger:
Data Array
Array
(
    [chronoform] => Careers
    [event] => submit
    [radio2] => 4
    [text3] => darko dinic
    [text4] => dinicdarko@hotmail.com
    [text5] => brestovac
    [text6] => lipovica
    [button10] => Submit
    [view] => item
    [Careers] => 
    [ip_address] => 46.16.109.230
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [4] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:dinicdarko@gmail.com
                    [2] => Subject:Careers
                    [3] => From name:
                    [4] => From email:
                    [5] => Reply name:
                    [6] => Reply email:
                    [7] => Attachments:
                    [8] => Body:
<table>
<tbody>
<tr>
<td>What are You interested in?</td>
<td>4</td>
</tr>
<tr>
<td>Name:</td>
<td>darko dinic</td>
</tr>
<tr>
<td>E-mail:</td>
<td>dinicdarko@hotmail.com</td>
</tr>
<tr>
<td>City:</td>
<td>brestovac</td>
</tr>
<tr>
<td>State:</td>
<td>lipovica</td>
</tr>
<tr>
<td>File Label</td>
<td></td>
</tr>
<tr>
<td>File Label</td>
<td></td>
</tr>
<tr>
<td>File Label</td>
<td></td>
</tr>
</tbody>
</table>

Poster's IP address:46.16.109.230
                )

        )

)


The help will be very appreciated! Thanks in advance...
GreyHead 18 Feb, 2014
HI dinja,

Do you have an Upload Files action in the form On Submit event? If you do, what is in the Files Config box?

Bob
dinja 18 Feb, 2014
Hi GreyHead, thanks for the reply!

Yes, I have "upload files" action under "on submit" events.

In files config box I have this: "field1:doc-docx-pdf-txt".
dinja 18 Feb, 2014
I have managed to resolve this issue.
I didn't realise that I have to change the default "field1" with my field name. Now it's working fine.
Thanks a lot!
adib 18 Feb, 2014
Hi,

Can you please explain how you resolve that. I have the same problem and I tried many times to fix it.
https://www.chronoengine.com/forums/posts/f5/t94556/cfv5-file-upload-not-working-attachments.html
dinja 18 Feb, 2014
Of course I can. It will be my pleasure to help you.

Under the file config field you must type next:

"fieldname: (followed by file types separated by - )"

field name you can find by checking the specific field under the designer section. just hit the edit button next to the field that you're using for upload and check under "field name" label.

did that help you?
adib 18 Feb, 2014
Thanks for your answer...

So what I have is this:

[attachment=0]Screenshot 2014-02-18 20.56.29.png[/attachment]
[attachment=1]Screenshot 2014-02-18 20.56.47.png[/attachment]
[attachment=2]Screenshot 2014-02-18 20.58.22.png[/attachment]

and what I got:

Data Array
Array
(
    [option] => com_chronoforms5
    [chronoform] => STF
    [event] => submit
    [full_name] => gfdfgdf
    [birth_date] => 10-02-2014
    [sex] => male
    [email] => shami585 [AT] yahoo [DOT] com
    [phone] => 004917632093850
    [skype] => adeeb
    [study] => student
    [job] => trans
    [agreement] => 1
    [recaptcha_challenge_field] => 03AHJ_VutQO-ghhP3q6W2HWW1ny2J844BX5hRDcc_Lx6oDThhD9oVlyDquJVVRKjAIFvJ3G8CuN078eiRDxP3YKq1QKw9P2b8v7unJgt7QjzLjPhxkXtyJa1RFwJuKYc8rMYr0uxpbO6qCf4SV50luo3y6jI2_Aa2x2BAD3kknDDTwAGk9dOsxiXM
    [recaptcha_response_field] => erefiss counties
    [button13] => submit
)
Array
(
)
Errors
Array
(
    [cvfile] => file type error
)
Debug Info
Array
(
    [] => Array
        (
            [Files Upload] => Array
                (
                    [0] => Upload routine started for file upload by : cvfile
                    [1] => File : cvfile extension is not allowed.
                )

        )

)
dinja 18 Feb, 2014
That looks ok.

Have you included fields names under "attachment files" field that can be found under e-mail action in "on submit" section?
adib 18 Feb, 2014
I included them. But first the upload is not done. I got extension error. I tried .pdf files and also others but all the same.
When I delete all types the form does not see the upload file action at all..
dinja 18 Feb, 2014
I don't know why is not working on your side, I fixed it like I explained above...
adib 18 Feb, 2014
Thanks for your help..
It works now. I should put (-) in the Extensions separator.
I dont know why, but it works in this way.
This topic is locked and no more replies can be posted.