Forums

Problem adding file uploads to email

mwweb 08 Feb, 2018
Hello and greetings.

After lots of trial and error, I finally have my form uploading files from my form. In the email of the form it shows the file name of the file. However, in the email the files are not being attached, even though I have "Attach to Email" selected in the "File field", and in Setup I have Auto Attach file fields selected in Email on the submit action.

Am I missing something?
Max_admin 08 Feb, 2018
Hello omcreations,

Try to call the files manually in the email attachments box:
{var:upload_action_name.file_field_name.path}
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mwweb 08 Feb, 2018
I'll give that a try. But I was curious. The form i am building is a multi page form. File uploads on multi page forms wasn't covered anywhere, and i discovered that i had to have file upload on setup on the next page from where the upload was. Meaning if there was an upload on page 1, then in setup i had to have the file upload action on page 2.

The process of attaching files to the email wouldn't be any different because it's a multi page form, would it?
Max_admin 09 Feb, 2018
Well, the multi page action stores the form data only in session and passes that between pages, files data are not stored and you may need to use a "Save to session" action to store them then retrieve the info when the email is triggered, UNLESS the email action is on the same event of the "Upload" action, in this case you should not worry about saving the files data to session.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.