Forums

The uploaded file is not sent!

eventra 18 Jun, 2012
Hi,
I've a problem with Chronoform when I upload a file in the form!
After the send the form, the file selected don't uploaded on the server and don't appear in the e-mail that arrives.

I use chronoform 4.0 RC2.0 with Joomla 1.5.24

Please help me!
Thanks
GreyHead 18 Jun, 2012
Hi eventra,

Have you configured the Upload Files action (or the tab in the Easy Wizard)?

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 may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.

Bob

PS Please upgrade to the current release of ChronoForms v4 as there have been some bug-fixes.
eventra 18 Jun, 2012
I Bob, thanks for the reply!

I installed the latest version of ChronoForm and I checked that all the parameters of upload file were ok! I insert the debug on submit event and this is the results! The "input_file_9" is the field of upload file that is empty!
Thanks!

Array
(
[option] => com_content
[view] => article
[id] => 10
[Itemid] => 45
[chronoform] => Form_Lavora_con_noi
[event] => submit
[input_select_12] =>
[input_text_0] => testEventra
[input_text_10] => testEventra
[input_text_11] => testEventra
[input_text_15] => testEventra
[input_text_2] => [email]testEventra@testEventra.it[/email]
[input_text_3] => 085959595
[input_file_9] =>
[input_textarea_4] => testEventra
[input_checkbox_7] => 1
[chrono_verification] => jfqve
[input_submit_6] => Invia Candidatura
[343757529df9e9b36e66cc4406841471] => 1
[_PLUGINS_] =>
)
eventra 19 Jun, 2012
Hi,
please help me... in a few days I must put the website online, and I must resolve this problem!
GreyHead 20 Jun, 2012
Hi eventra,

I still see no sign of the Upload Files action in the Debugger data :-(

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob

PS Please see this FAQ about uploading files.
eventra 20 Jun, 2012
Thank you Bob,
I solved looking the video that you have posted!

A special thanks!
Angelo
group3solutions 20 Jun, 2012
Hey Bob,

Having a similar issue but different cause. My test PDFs were exceeding the upload size limit set in the form. The form was set to 200KB, and actual PDF attempting to upload was bigger. The form was submitting without error, but the file wasn't uploaded in place. Saw this post and added the Debugger action as you mentioned and then noticed the error message about file size.

Now trying to figure out why the error wasn't displaying during the upload process.

My form actions are:

On Load
- Load JS
- Load CSS
- Load Captcha
- Show html

On Submit
- Upload Files
- - OnSuccess
- - OnFail
- DB Save
- Email - Client Notification
- Show Thanks Message

Of note here is that the OnFail action is red, but I see no way to edit it or assign attributes/tasks to it.

Any thoughts?

Thanks,
Brad
GreyHead 20 Jun, 2012
Hi Brad,

The usual way to handle and On Fail event is to drag an Event Loop action into it. That will redisplay the form with an error message.

Bob

PS You are free to use any other actions as well as or instead of the Event Loop, so you could send an Email or use a DB Save action to record the error if that was important.
group3solutions 20 Jun, 2012
Outstanding! Thanks so much. This means we've been doing this wrong on our end for some time, now. Heh.

For anyone else watching at home out there, the Event Loop action was dragged over into the Upload Files action's red On Fail box. Then the settings were:

Target Event: > On Load
Quit Next Actions: Yes

Voila!

Thanks again Bob. =)
This topic is locked and no more replies can be posted.