email action / email template / contains {Upload}email action / Attachment files input / UploadThe debugging results are attached as a PDF.Not sure what's missingdavid"> submitted files not included in email - Forums

Forums

submitted files not included in email

dadoonan 16 Feb, 2015
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
GreyHead 16 Feb, 2015
Hi David,

There's no attachment. Please click 'Upload' before submitting.

Bob

PS Don't you already have a thread on this topic?
dadoonan 16 Feb, 2015
I submitted this as a new thread because it's dealing only with the email response part of a form.

david
GreyHead 17 Feb, 2015
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
dadoonan 17 Feb, 2015
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
GreyHead 17 Feb, 2015
Hi David,

That looks good - have you removed the custom code?

Bob
dadoonan 17 Feb, 2015
custom code removed ... same result.

see attached screen shot
GreyHead 17 Feb, 2015
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
GreyHead 17 Feb, 2015
Answer
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
This topic is locked and no more replies can be posted.