file upload in chronoform 4.0 RC3.2 not attaching files

m4smariaoni 02 Oct, 2012
I have read a lot of post on file upload and i have followed the processes involved but my form is still not uploading. I followed the video tutorial on Youtube for file upload yet the form are not attaching. That is my problem. Please i need URGENT HELP. I have been on these for weeks.
GreyHead 02 Oct, 2012
Hi m4smariaoni,

I've moved this post from the ChronoComments to the ChronoForms forum.

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
m4smariaoni 02 Oct, 2012
GreyHead, Thank you for the interest. Please find attached the debugger result. Also the form is not validating too.



<div class="ccms_form_element cfdiv_text" id="autoID-b463d4d72f0280096a71bbe383ef8aed_container_div"><label>Your Name</label><input maxlength="150" size="30" class=" validate['required','alpha']" title="" type="text" value="" name="name" />
GreyHead 02 Oct, 2012
Hi m4smariaoni,

It looks as though you haven't added an Upload Files action to your form - or if you have then it may not be enabled.

Bob
m4smariaoni 02 Oct, 2012
I truly appreciate your response. the action file has been added already. please see the printscreen.
m4smariaoni 02 Oct, 2012
am using chronoform 4.0 RC3.2 and plugin V4 RC3.0

is this okay or could it be a problem
m4smariaoni 02 Oct, 2012
Hello Greyhead. Please is there any help from you concerning why my file upload is not working
GreyHead 02 Oct, 2012
Hi m4smariaoni,

Sorry, I missed your reply.

The Upload Files action isn't showing anything in the Debug report :-( Is it in the On Submit event?

Bob
m4smariaoni 02 Oct, 2012
yes it is. Please dont get tired of my issue. I have to sort it today.
GreyHead 02 Oct, 2012
Hi m4smariaoni,

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

Bob
GreyHead 02 Oct, 2012
Hi m4smariaoni,

There are a couple of problems.

1) The upload folder isn't writable. If you check the form without the template you can see this error message on submit:
JFolder::create: Could not create directory
Couldn't create upload directroy 1
This is usually a problem with the permissions; it can also happen if you have FTP enabled on the site and the FTP User doesn't have the necessary permissions.

2) You have quite an old version of ChronoForms installed - I don't think that this is causing the upload problem but there have been quite a lot of bug-fixes and improvements.

I couldn't fix either of these as they both need SuperAdmin access.

Bob

PS You also have {name} and {email} in the Email From Name and Email settings. You need plain strings in these boxes with a valid email, preferably matching the site domain.
m4smariaoni 04 Oct, 2012
hello GreyHead,

Any Updates Please!!!


Thanks
GreyHead 04 Oct, 2012
Hi m4smariaoni,

As I said in my PM we had a six hour power cut this morning so my day is messed up.

I've just tried to upgrade ChronoForms on your site but it's not possible. I get a "Failed to move folder" error message which suggests that there are still permission problems to be be resolved :-(

Please let me know when you have fixed these - it will probably also fix your upload problem. Your web host should be able to help.

Bob
m4smariaoni 05 Oct, 2012
Hello Greyhead.

It has to do with permission issue. You are right. Thank you for your help.
m4smariaoni 06 Oct, 2012
I figured out the permission issue by enabling ftp in the global configuration .

Thank you so very much GreyHead.
bowersdv 26 Nov, 2013
Hello Greyhead,

I'm having issues with this as well. I followed the video and this forum thread, but files are not writing to the directory. I have permissions set to 755 on the default folder provided by Chronoforms.

Using CPanel in InMotionHosting. In Debug mode I get the following:

[upload_files] => Array
(
)

In the email, nothing shows up. Not seeing any errors regarding file permissions. In Joomla, FTP is turned off. Any ideas?

Best regards,
Derek
GreyHead 27 Nov, 2013
Hi,

Please add a Custom Code action to the form On Submit event and add this code to it:
<?php
echo'<div>$_FILES: '.print_r($_FILES, true).'</div>';
?>
That will dump the PHP $_FILES array and should show you if there are errors on the upload.

Bob
m4smariaoni 07 Feb, 2014
hello all,

after submitting the form. it will write invalid address for email before the thank you message. what could have happened

thanks
itacolomy 12 Mar, 2014
Hi,

I'm also with the same problem.
Anyone has the solution?

Thanks!
GreyHead 12 Mar, 2014
Hi itacolomy,

What problem do you have exactly?

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