Forums

ChronoForms5 No File Upload

rholzler 06 Mar, 2015
I am not getting any file uploads. The file field does not appear in the submission array in the debug. The file is not saved to the default location. The file is not attached to emails. No error is triggered/displayed when an incorrect file type is submitted.

I have verified that the Field Name, Field ID, Files Config, Array Fields and Attachment files all match (e.g. file10).

Data Array
Array
(
    [chronoform] => ContactCareers
    [event] => submit
    [YourName] => Robert Holzler
    [email] => demo@example.com
    [phone] => 941-555-1212
    [textarea3] => Test
    [captcha] => 
    [button6] => Send Now
    [id] => 23
    [ip_address] => REMOVED
)


Debug Info
Array
(
    [11] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => INSERT INTO `gqsw2_chronoengine_chronoforms_datatable_ContactCareers` (`YourName`, `email`, `phone`, `textarea3`, `button6`, `user_id`, `uniq_id`, `created`) values ('Robert Holzler', 'demo@example.com', '941-555-1212', 'Test', 'Send Now', '0', 'f0996dbadc119011f1f5f9a2efb6727dd6c5ce07', '2015-03-06 10:30:44');
                        )

                )

        )

    [0] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:me@mydomain.com
                    [2] => Subject: Contact Form Submission: 
                    [3] => From name:noreply@example.com
                    [4] => From email:noreply@example.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Your Name</td><td>Robert Holzler</td></tr>
<tr><td>Email</td><td>demo@example.com</td></tr>
<tr><td>Phone</td><td>941-555-1212</td></tr>
<tr><td>Resume</td><td></td></tr>
<tr><td>Message</td><td>Test</td></tr>
</table><br /><br />IP: REMOVED
                )

        )

)
GreyHead 10 Mar, 2015
Hi rholzler,

You have file10 in the Array Fields box - I think that is only needed if you have multiple file uploads with the array name file10[]. Please try removing it and see if that resolves the problem.

Bob
rholzler 13 Mar, 2015
Removing the field name (file10) from the Array Fields box did the trick!

THANK YOU!
Quintin-E 28 Oct, 2015
Hi

Thanx for a great componenet

I'm having the same problem as described, files are not being uploaded or attached to the email.
I checked the Array Fields box, but it is empty
In my debug there is an Array() error

What am I missing?

Please see screenshots attached
GreyHead 28 Oct, 2015
Hi Quintin-E,

Please try turning off the AJAX submit in the HTML (Render form) action - as far as I know that doesn't support file uploads.

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