Forums

No email attachment

driv 30 Oct, 2013
Hello🙂

I am unable to add an attachment to my form.
(I have read this FAQ http://www.chronoengine.com/faqs/2676-how-can-i-attach-uploaded-files-to-an-email.html )

Is it required to add an 'upload files' event if only requiring an attachment?

In the preview window - the attachment field name is the same as the events/on submit/attachment fields name

This is the debug info...

Data Array:

Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => JobAdvert
[event] => submit
[input_text_1] => Chrono
[input_text_2] => [email]bob@example.com[/email]
[input_textarea_3] => test test test
[uploaded_file_1] =>
[input_submit_4] => Submit
[3bc72bc01143e635132277231daf75f8] => 1
)

Validation Errors:

Array
(
)

Debug Data

email
2
Result An email has been SENT successfully from (Admin)admin@example.com to [email]fred@example.com[/email]
Body

Header via wysiwyg
Name Chrono
Email [email]bob@example.com[/email]
Message test test test
Attachment


Submitted by 213.81.111.12
Attachments array ( )



Any thoughts on what to do?

Thanks🙂
GreyHead 30 Oct, 2013
Hi driv,

Is it required to add an 'upload files' event if only requiring an attachment?

Yes, if the file is being uploaded from the form.

Bob
driv 30 Oct, 2013
Thank you Bob.

I had tried that but I hadn't realised the Fields Configuration field was mandatory. uploaded_file_1:txt-doc-pdf

(Just posting in case anyone else has the same problem.)
GreyHead 04 Nov, 2013
Hi driv,

Yes, that is required (a) because it is the only way that ChronoForms knows which File element(s) to pay attention to and (b) because for security reasons only the file-types you list there are allowed.

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