Forums

Multi and normal file uploads not working in multipage form...

antigeek 09 Nov, 2016
Hello

I am experiencing an issue with file uploads on a multi-page form I have setup.

Basically the attachment never gets captured in the array (shown in debug) and therefore not sent to the email as attachment either....However it does seem to upload.
I have tried multiple configurations all with no luck even though I can get it to work on another site with a similar setup
I had a similar issue with the other site and clearing the chronoforms cache seemed to fix it however that is not the case with this one??

I have setup now as I think it should be and I have attached screenshots of the configuration, however as its a pretty large form it is difficult to show all here.

Please PM for access to the site if needed.

Thanks for the great extension!!

Cheers
Greg
GreyHead 09 Nov, 2016
Hi antigeek,

The settings look OK - though I don't see any sign of uploaded files in the parts you posted. By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 10 Nov, 2016
Hi Antigeek,

I think that the problem is that you have the Files Upload action in the wrong event. The Upload File element is in Page4 which submits to the Page5 event - the Files Upload action is in the Page4 event.

Bob
antigeek 11 Nov, 2016
Hi Bob

Thanks for looking into this! I have removed the upload action from page 4 and added to page 5 ( whoops!)
However its still not working....

Also deleted the chronoforms and browser cache to double check...
Any other ideas?
GreyHead 11 Nov, 2016
Answer
Hi antigeek,

Looking again I think that we are still a page out - the Files Upload needs to be in the On Page6 event. I have added some debuggers so that you can see the output on some of those pages, and a Custom Code action to show the PHP $_FILES array (which is empty on Page 5) - disable or delete when no longer needed.

I also noticed that you have the action set to multiple - in that case you need an entry - enrol_file - in the Array fields box of Upload Files action.

Bob
antigeek 13 Nov, 2016
1 Likes
Thats got it! There was also a typo on one of the fields which caused me a bit of grief!
Thanks so much for taking the time to help out Bob!

Really appreciate it!
This topic is locked and no more replies can be posted.