File upload event - where to? file not received

How to fix file uploads not attaching to emails in ChronoForms.

Overview

The issue occurs when the upload files event is placed after the email event in the SUBMIT area, so the file isn't uploaded before the email is sent.
Move the upload files event to occur before the email event in the SUBMIT area to ensure the file is attached. For displaying a message before a redirect, use a Joomla system message instead of a CF message event.

Answered
ChronoForms v6
Pi PieroA 21 Mar, 2018
Answer
Just migrate from CF5. Some quick issues I am facing:

1- I have added the "upload files" event to the "SUBMIT" area on the right after the "EMAIL" event. Is this correct, or must it be placed into the "LOAD" section?
2- When testing the form, and adding a file, I do not receive any attachment in my inbox even if I can see that the attached files has been saved into the correct "uploads" directory, what am I doing wrong?
3- I placed the "message" event into the "SUBMIT" to display a thank message but if I add,a t the end, a "redirect" event to display the website home page, the previous "message" is not displayed. Any suggestions?

Thank you very much
Piero
Gr GreyHead 21 Mar, 2018
1 Likes
Hi Piero,

The Upload Files action needs to be *before* the Email action - otherwise the file is not uploaded when the email is sent.

You can't use a ChronoForms message with a ReDirect as the CF page is not displayed. You should be able to use a Joomla! System message instead.

Bob
Pi PieroA 21 Mar, 2018
Thank you!!! it works🙂
that was the key.
I still have to better understand how the various events must be placed in the LOAD and SUBMIT areas.
Gr GreyHead 21 Mar, 2018
Hi PieroA ,

Almost always they are run in the order they are in the event area.

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