When submitting form tests, all of the information is being saved to the database and the uploaded files are being saved on the server.
An email is generated by the submission, containing all the information except for the submitted file. The file name is neither included in the body of the message, nor is it attached to the message.
Per the instructions at http://www.chronoengine.com/faqs/70-cfv5/5224-how-can-i-attach-files-from-my-server-to-an-email-in-cfv5.html:
The db field name is Upload ...
custom action / content =
<?php
$form->files["Upload"]["path"] = "/home/acase/acase.org/forum/images/";
// you can change the "field_name" string to something else
?>
email action / email template / contains <td>{Upload}</td>
email action / Attachment files input / Upload
The debugging results are attached as a PDF.
Not sure what's missing
david
An email is generated by the submission, containing all the information except for the submitted file. The file name is neither included in the body of the message, nor is it attached to the message.
Per the instructions at http://www.chronoengine.com/faqs/70-cfv5/5224-how-can-i-attach-files-from-my-server-to-an-email-in-cfv5.html:
The db field name is Upload ...
custom action / content =
<?php
$form->files["Upload"]["path"] = "/home/acase/acase.org/forum/images/";
// you can change the "field_name" string to something else
?>
email action / email template / contains <td>{Upload}</td>
email action / Attachment files input / Upload
The debugging results are attached as a PDF.
Not sure what's missing
david
Hi David,
There's no attachment. Please click 'Upload' before submitting.
Bob
PS Don't you already have a thread on this topic?
There's no attachment. Please click 'Upload' before submitting.
Bob
PS Don't you already have a thread on this topic?
I submitted this as a new thread because it's dealing only with the email response part of a form.
david
david
Hi David,
The FAQ is about attaching a 'static' file from your server to the email e.g. when you want to attach a 'terms and conditions' document.
To attach uploaded files you don't need the Custom Code - just add Upload (with no brackets or quotes) in the Email Attachments box.
Bob
The FAQ is about attaching a 'static' file from your server to the email e.g. when you want to attach a 'terms and conditions' document.
To attach uploaded files you don't need the Custom Code - just add Upload (with no brackets or quotes) in the Email Attachments box.
Bob
that's what I've been using from the beginning.
Upload is the name of the database field. Do I need to change that?
david
Upload is the name of the database field. Do I need to change that?
david
Hi David,
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
Hi David,
It's working now, the Email action was before the Upload Files action so there were no files to attach when the email was sent.
Bob
It's working now, the Email action was before the Upload Files action so there were no files to attach when the email was sent.
Bob
This topic is locked and no more replies can be posted.