Forums

File upload & Email (advanced mode) not working.

1rfan 27 Jun, 2015
hi there,

I used your multipage demo to start with and created 3 pages.
The first page gets the users details.
On the second page I needed 5 file upload options with the "add more" option. For this i used arrays.
On the third page I needed some more text entries with the "add more" option. For this i used arrays.

Everything is stored in the database except for the uploaded files. They are not uploading for some reason.

When i click next on the second page i can see the files are being uploaded but in the debug area there is no sign of the files. I don't know what I've missed.

My settings:

Multiplier Container setting
[attachment=2]multiplier.png[/attachment]

Field Settings1
[attachment=3]field name.png[/attachment]

Field Setting 2
[attachment=4]multiple yes.png[/attachment]

On Submit > File Upload > Options1
[attachment=0]upload options.png[/attachment]

On Submit > File Upload > Options Array
[attachment=1]upload array.png[/attachment]

On submit settings attached.

Please help me figure this out ... i've been stuck on this issue for over a day now and not sure what to do. i've been through all the forum options and tutorials but cannot seem to fix it.

thanks.

Irfan.
1rfan 28 Jun, 2015
Just incase anyone else is stuck on something similar ...

I removed the array signs in File-config section.
Then I switched pages 2 and 3 > Now the file uploads is on the last page.
it works perfectly (including emails with attachments).
GreyHead 28 Jun, 2015
1 Likes
Hi 1rfan,

I was working on this last week and found that file uploads in multi-page forms will work provided that the Files Upload action is **before** the Multi Page action on each page. Then the $form->files data is carried forward correctly.

That said I still think it is better to put the file uploads on the last page.

Bob
1rfan 28 Jun, 2015
thanks a lot for your reply bob. your videos on YouTube are also very useful.

i'll test the option with file upload before the multipage in my free time, just to see what happens.

Chronoforms does get a little tricky at times, but it is such a brilliant piece of work, i cannot thank you guys enough.

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