Hi
I am using Chronoforms 6 and I am experiencing difficulties with uploading files through my multi page form.
The debugger says: [info] => File is not present.
β
Is there something I am missing? I've been lookin through and through the form setup, but I can not figure it out π
β
Best Regards
Marcelo
I am using Chronoforms 6 and I am experiencing difficulties with uploading files through my multi page form.
The debugger says: [info] => File is not present.
β
Is there something I am missing? I've been lookin through and through the form setup, but I can not figure it out π
β
Best Regards
Marcelo
Hi Marcelo,
β
If you can put the Upload Files element on the last page of the form that should work smoothly, Otherwise you need to have the Upload Files action on the action that the Files Upload element submits to and add the form info to the form data so that it is carried forward by the Multi Page action.
β
Bob
β
If you can put the Upload Files element on the last page of the form that should work smoothly, Otherwise you need to have the Upload Files action on the action that the Files Upload element submits to and add the form info to the form data so that it is carried forward by the Multi Page action.
β
Bob
Hi Bob,
β
Thank you for the fast response.
β
I am not sure I understood the procedure on how this is done. I could choose the first alternative you mentioned, but that would break the logic of the formπ
β
I am a very slow learner, some I am going to try to break it up in steps so my brain can keep up with your explanationπ
β
β
Marcelo
β
Thank you for the fast response.
β
I am not sure I understood the procedure on how this is done. I could choose the first alternative you mentioned, but that would break the logic of the formπ
β
I am a very slow learner, some I am going to try to break it up in steps so my brain can keep up with your explanationπ
β
- The upload field is in page 3 out of 4.
- I added a upload action in the submit event - this does apparently not work
- I added an upload action to page 3 event + a save to session action - this does not work
- You mention to add the form info to the form data. Did you by this mean to add add a save to session action to page 3 event? I also added a save data action to the page 3 event.
- I also have a save data action in the submit event
β
Marcelo
Hi
β
I tried some simple testing to see if it worked at all by setting the upload field in the last page of the form. I can confirm that this worked!
β
The next step was to try moving the upload field to page 2.
I added an upload file action to event page 2 or so I understood I should do.
Furthermore I should add the form info to the form data, this part I dont understand. I added a save to session action to event page2, but it cant be this as it doesnt work. I also tried a save to data action for the page2 event.
β
Can somebody please explain exactly what is I should do? Cause I am obviously a little bit stupid π
β
Marcelo
β
I tried some simple testing to see if it worked at all by setting the upload field in the last page of the form. I can confirm that this worked!
β
The next step was to try moving the upload field to page 2.
I added an upload file action to event page 2 or so I understood I should do.
Furthermore I should add the form info to the form data, this part I dont understand. I added a save to session action to event page2, but it cant be this as it doesnt work. I also tried a save to data action for the page2 event.
β
Can somebody please explain exactly what is I should do? Cause I am obviously a little bit stupid π
β
Marcelo
Hi Marcelo,
β
You need the Upload File action in the event that Page 2 submits to - this is most likely the Page 3 event.
β
Similarly the Save Data action would need to be in the Page 3 event after the Upload File action.
β
Bob
β
You need the Upload File action in the event that Page 2 submits to - this is most likely the Page 3 event.
β
Similarly the Save Data action would need to be in the Page 3 event after the Upload File action.
β
Bob
Hi Bob
β
Indeed that did the work! Thank you. π
β
There is a little but ... I noticed that the uploaded file is not attached to the email.
So I added an email action to the page 3 event. Now the uploaded file is attached to the mail, but not the form info from page 3 . So I guess this is not the way to do it.
How do I tell the email action in the submit event to attach the uploaded file?
β
Marcelo
β
Indeed that did the work! Thank you. π
β
There is a little but ... I noticed that the uploaded file is not attached to the email.
So I added an email action to the page 3 event. Now the uploaded file is attached to the mail, but not the form info from page 3 . So I guess this is not the way to do it.
How do I tell the email action in the submit event to attach the uploaded file?
β
Marcelo
Hi Marcelo,
β
I'm not sure of the best way to add file attachments in a Multi Page form using CFV6. Please ask Max to take a look - you can send him a message using the Contact Us menu above and linking to this thread.
β
Bob
β
I'm not sure of the best way to add file attachments in a Multi Page form using CFV6. Please ask Max to take a look - you can send him a message using the Contact Us menu above and linking to this thread.
β
Bob
Hi Marcelo,
β
After the "Upload" action is processed, the file path is available under: {var:upload_action_name.path}, you can then use that in the email action "Attachments" box, but only if the email action is in the next event, if not then the path needs to be stored some where, like in a session var using a "save to session" action.
β
Best regards
β
After the "Upload" action is processed, the file path is available under: {var:upload_action_name.path}, you can then use that in the email action "Attachments" box, but only if the email action is in the next event, if not then the path needs to be stored some where, like in a session var using a "save to session" action.
β
Best regards
Hi Max,
β
The email is unfortunately not in the next eventπ
β
I tried several things now, but nothing worked yet.
β
I added {var:upload_action_name-path} in attachments list of the email action
I added a save to session action in the same event as the upload action.
I also tried adding the save to session action in the upload action and within the "Success field".
I also tried adding the session action to the same event as where the upload field is.
β
Where did I go wrong?
β
Marcelo
β
The email is unfortunately not in the next eventπ
β
I tried several things now, but nothing worked yet.
β
I added {var:upload_action_name-path} in attachments list of the email action
I added a save to session action in the same event as the upload action.
I also tried adding the save to session action in the upload action and within the "Success field".
I also tried adding the session action to the same event as where the upload field is.
β
Where did I go wrong?
β
Marcelo
Hi Marcelo,
β
You need the Save to Session action after the File Upload action and in the same event.
You can recover this info using {session:NAME} where name is the name you used when saving it. You'll need to do that before the Email action in the last event.
Bob
β
You need the Save to Session action after the File Upload action and in the same event.
You can recover this info using {session:NAME} where name is the name you used when saving it. You'll need to do that before the Email action in the last event.
Bob
Hi Bob,
β
I added a Save to Session action after the File Upload action and in the same event.
β
So far so good.
β
The next part is where I do not followπ ...
β
I added a Custom Code action with {session:save_to_session43} right before the email action - did not work, I also tried some other options without success.
β
In what action should I insert the {session:save_to_session43} ?
β
Regards Marcelo
β
I added a Save to Session action after the File Upload action and in the same event.
β
So far so good.
β
The next part is where I do not followπ ...
β
I added a Custom Code action with {session:save_to_session43} right before the email action - did not work, I also tried some other options without success.
β
In what action should I insert the {session:save_to_session43} ?
β
Regards Marcelo
Hi Marcelo,
β
I suggest that you try putting the {session:save_to_session43} in the Attachments box of the Email action - I really don't know how Max has this working.
β
Bob
β
I suggest that you try putting the {session:save_to_session43} in the Attachments box of the Email action - I really don't know how Max has this working.
β
Bob
Hi Bob,
β
Thank you for trying to help me!
β
I already tried thatπ
β
Here is a recap of my settings:
β
I have a multi page form consisting of 4 pages.
On page 3 I have an upload file field.
In the page 4 event I have the upload files action followed by the save to session action right after in the same event.
The submit event has the email action and in the attachments box I added {session:save_to_session43}
β
Marcelo
β
Thank you for trying to help me!
β
I already tried thatπ
β
Here is a recap of my settings:
β
I have a multi page form consisting of 4 pages.
On page 3 I have an upload file field.
In the page 4 event I have the upload files action followed by the save to session action right after in the same event.
The submit event has the email action and in the attachments box I added {session:save_to_session43}
β
Marcelo
Hi,
β
What is the data provider of the "Save to session" action ? it should be set to:
β
Best regards
β
What is the data provider of the "Save to session" action ? it should be set to:
{var:upload_files_name.file_field_name.path}Then you can use {session:name_of_session_action} in the email attachments box
β
Best regards
Hi Bob and Max,
β
Thank you a lot for helping me out! I got it working nowπ
β
Here comes an explanation for lost souls like me, and how I got it working with the help of Bob and Max. I am noob and things did not always seem so obvious:
β
Marcelo
β
Thank you a lot for helping me out! I got it working nowπ
β
Here comes an explanation for lost souls like me, and how I got it working with the help of Bob and Max. I am noob and things did not always seem so obvious:
β
- I have a multi page form consisting of 4 pages.
- On page 3 I have an "upload file" field (in my case the default name was "file38").
- In the page 4 event I have the upload files action ( the default name was "upload25")
- followed by the "save to session" action (default name " save_to_session43") in the same event.
- In the "Data provider" field of the "save to session action" I entered, {var:upload_files_name.file_field_name.path}. In my case {var:upload25 .file38.path}
- In the submit event I added {session:save_to_session43} in the "Attachments box" of the "Email" action.
Marcelo
Hi Marcelo,
β
This line:
β
Best regards
β
This line:
{var:upload25.file38./httpdocs/components/com_chronoforms6/chronoforms/uploads/}should be changed to:
{var:upload25.file38.path}The way to get the shortcode syntax in general can be explained when you check the debug info, you can find the exact path to use to extract the value you need.
β
Best regards
This topic is locked and no more replies can be posted.