Forums

Upload file via form not working

TheBillB 22 Oct, 2014
Hi folks,

I'm trying to update this form: http://www.gohomeontimeday.org.au/get-involved

A previous form that was used last year has stopped working, presumably because we switched hosts, but it did last year work with file uploads. This new form is not working either.

The result from the debugger is:

Data Array: 

Array
(
    [chronoform] => company_sign_up
    [event] => submit
    [input_text_2] => 
    [input_text_3] => 
    [email] => 
    [input_text_5] => Bill Enterprise
    [input_text_6] => 
 bill@tai.org.au
    [company_logo] => 
    [input_submit_7] => Submit
    [9726f92e46adcf92d21013c1dd44eb51] => 1
)
Validation Errors: 
Array
(
)
Debug Data
Upload routine started for file upload by : company_logo
/home/tata1378/public_html/!gohomeontimeday.org.au/images/supporters/20141022124108_title.jpg could not be uploaded!!
email
4
Result
An email has been SENT successfully from (Go Home on Time Day) info@gohomeontimeday.org.au to bill@website.org.au
Body
Your First Name	
Your Last Name	
Your Email	
Your Company's Name	Bill Enterprise
Your Company's Email	bill@website.org.au
Your Company's Logo	
Attachments
array ( )
5
Result
An email has been SENT successfully from (Go Home on Time Day) info@gohomeontimeday.org.au to
Body
Your First Name	
Your Last Name	
Your Email	
Your Company's Name	Bill Enterprise
Your Company's Email	bill@website.org.au
Your Company's Logo	
Attachments
array ( )
redirect_user
redirect_user_target_url: http://gohomeontimeday.org.au/get-involved-thank-you
Redirect URL (click to continue):
http://gohomeontimeday.org.au/get-involved-thank-you


I have followed the advice on this related forum post: http://www.chronoengine.com/forums/posts/f2/t86888.html?page=1

The File Upload is enabled, and the upload path is: gohomeontimeday.org.au/images/supporters/ (but I have also tried it without success with this field blank, with the result: "/home/tata1378/public_html/!gohomeontimeday.org.au/images/supporters/20141022124645_title.jpg could not be uploaded!!").

I have FTP enabled, but I'm not sure what the FTP user is. However, given it worked last year, I'm assuming that it has the right permissions. I'm not sure how to set permissions to 755 on the default folder provided by Chronoforms (as discussed in the previous help thread) because I don't think I have access to the Joomla file manager.

There are no updates available for our version of Chronoforms.

With this code added as Custom Code, the debugger text doesn't seem to change:
<?php
echo'<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>

I hope you're able to help this inexperienced Joomla user!

Thank you,
Bill
Max_admin 22 Oct, 2014
Answer
1 Likes
Hi Bill,

Please try to clear the path field, and also disable FTP ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
TheBillB 23 Oct, 2014
Thanks Max, disabling FTP fixed a separate problem I was having, but the debugger still returns this error. I thought that this might mean that the file was the wrong size, but it's within the permitted range.

$_FILES: Array ( [company_logo] => Array ( [name] => title.jpg [type] => image/jpeg [tmp_name] => /tmp/phpVXg39T [error] => 0 [size] => 153202 ) )
TheBillB 23 Oct, 2014
(Sorry, doesn't look like there's an edit function).

Actually, despite the error, that's now (sort of) working! The files still aren't getting uploaded, as far as I can tell, but they are now getting emailed to the address we set - which is all we need.

Thank you Max for your help!
Max_admin 23 Oct, 2014
1 Likes
If they are getting emailed then they must be on the server, so maybe you just check the wrong path or need to refresh!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.