Forums

File upload not working

bettyheim 28 Jan, 2014
Hello,
I have a form on this page: http://qualitymarineofalaska.com/Employment/positions.html It is on the tabbed item titled: Apply Now.
Everything on the form is working except for the file attachment. When not in debug mode, when the form is submitted the following shows up:
Warning: array_values() expects parameter 1 to be array, null given in /home/content/63/11699963/html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/content/63/11699963/html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206
Thank you! Your form has been submitted.

This is what I get when done in debug mode:
Warning: array_values() expects parameter 1 to be array, null given in /home/content/63/11699963/html/administrator/components/com_chronoforms/form_actions/email/email.php on line 205

Warning: Invalid argument supplied for foreach() in /home/content/63/11699963/html/administrator/components/com_chronoforms/form_actions/email/email.php on line 206
Data Array:
Array
(
[chronoform] => application_form
[event] => submit
[first_name] => betty
[last_name] => heim
[email] => test@test.com
[telephone] => 3090835
[position] => testingsup
[qualities] => test, test, test
[Send] => Send
[752c697b68cc735750ea9b983dc07343] => 1
[Itemid] => 133
[file] => 20140128160106_Print.pdf
[_PLUGINS_] => 20140128160106_Print.pdf,Print.pdf,/home/content/63/11699963/html/components/com_chronoforms/uploads/application_form/20140128160106_Print.pdf,186603,http://qualitymarineofalaska.com/components/com_chronoforms/uploads/application_form/20140128160106_Print.pdf
[chronoform_data] => Array
(
[cf_uid] => abaf3af6a6831eed40578347d1945ff1
[cf_created] => 2014-01-28 16:01:06
[cf_created_by] => 0
[cf_ipaddress] => 68.98.222.114
[cf_user_id] => 0
[chronoform] => application_form
[event] => submit
[first_name] => betty
[last_name] => heim
[email] => test@test.com
[telephone] => 3090835
[position] => testingsup
[qualities] => test, test, test
[Send] => Send
[752c697b68cc735750ea9b983dc07343] => 1
[Itemid] => 133
[file] => 20140128160106_Print.pdf
[_PLUGINS_] => 20140128160106_Print.pdf,Print.pdf,/home/content/63/11699963/html/components/com_chronoforms/uploads/application_form/20140128160106_Print.pdf,186603,http://qualitymarineofalaska.com/components/com_chronoforms/uploads/application_form/20140128160106_Print.pdf
[cf_id] => 11
)

[chronoform_data_cf_id] => 11
)
Validation Errors:
Array
(
)
Thank you! Your form has been submitted.
Debug Data
Upload routine started for file upload by : file
/home/content/63/11699963/html/components/com_chronoforms/uploads/application_form/20140128160106_Print.pdf has been uploaded successfully.
email
10
Result
An email has been SENT successfully from (Quality Marine Website Application Form)qualitymarine@alaska.com to Qualitymarine@alaska.com, info@fidesigngroup.com
Body
First Name: betty
Last Name: heim
Email: test@test.com
Telephone: 3090835
Position Applying for: testingsup
What Qualities Do YOu Have That You Think We Will Find Most Valuable? test, test, test
Attach Resume (.pdf, .doc, .docs) 20140128160106_Print.pdf

Submitted by 68.98.222.114
Attachments
array ( )

I am not sure want the problem is. Can you please help?
Max_admin 30 Jan, 2014
Hello bettyheim,

According to your debug, the file has been uploaded, but its not attached to the email, please add the field field name to the "Attachments fields names" in the Email settings, the file field name in your info is "file"

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
bettyheim 30 Jan, 2014
This took care of the problem. Thank you so much!
GreyHead 30 Jan, 2014
Hi bettyheim,

There's this FAQ which also gives you the answer.

Bob

PS The PHP Warnings can be hidden by setting Error Reporting to System Default or to None in your site Global Configuration. You should generally do this on a Production site.
This topic is locked and no more replies can be posted.