Multi-Page form with file upload.

Gorf8083 22 Jan, 2014
First of all I will give you a little bit of configuration information.

I am running Joomla 3.2.1 with Chonoforms 5.0 RC3.1

I am having quite some time setting up a multi page form that also has a file upload. It is a 6 page employment applications form with a file upload on the first page and other various information on pages 2 to 6. Page 6 has the captcha and the final submit button.

I have turned on the debugger and its not even showing the file upload field in the array list of items submitted:
Array
(
    [option] => com_chronoforms5
    [chronoform] => EmploymentApplication
    [event] => submit
    [captcha] => nc3rv
    [checkbox54] => 1
    [button55] => Submit Application
    [text8] => 
    [text9] => First
    [text10] => 
    [text11] => Last
    [datepicker12] => 
    [dropdown13] => 
    [dropdown14] => 
    [text15] => 
    [text16] => 
    [button18] => Continue
    [text19] => 
    [text20] => 
    [text21] => 
    [text22] => 
    [button26] => Continue
    [text23] => 
    [text24] => 
    [text25] => gorf8083@yahoo.com
    [button27] => Continue
    [radio28] => No
    [textarea29] => 
    [textarea30] => 
    [checkbox_group31] => Day
    [checkbox_group32] => Sunday
    [button33] => Continue
    [text38] => 
    [textarea39] => 
    [datepicker40] => 
    [datepicker41] => 
    [text42] => 
    [textarea43] => 
    [datepicker44] => 
    [datepicker45] => 
    [text46] => 
    [textarea47] => 
    [datepicker48] => 
    [datepicker49] => 
    [button51] => Continue
)

Array
(
)

Errors

Array
(
)

(Email section of debug has been excluded from this post.)

After the field text16 on the first page there should be a file56 field that is just not showing up anywhere when I try to attach a file. I also noticed that there should have been a multi field checkbox field right before the first continue button and that is not showing either but still shows up in the final email that's being submitted.

Everything but the file attachment works on the form. Could you direct me in the correct location in the Setup that the File upload needs to be included in? I have placed it in the 'On Submit' above the multi page handler as well as the page 2 both above and below the multi page handler. Is there some other location I should be placing the 'Files upload' handler for it to work correctly.

Any help would be much appreciated.

-Tony
GreyHead 22 Jan, 2014
Hi Tony,

It needs to be on whichever event the form page with the Upload File element submits to.

Bob
Gorf8083 22 Jan, 2014
Thank you very much. I have placed the file upload on page 2, right after the multi page handler and it now shows in the debug that it has been uploaded.

Now in my email handler is still not sending the attachment. I have included the field name of the file into the email handler under the 'Attachment Files' as just file56 with brackets or quotes or anything, but its still not attaching the file.

I think I can use a work around though by showing the image in the HTML version of the email with just a <img> tag.

Thanks for pointing me in the proper direction!

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