Forums

Attachments to forms not sent.

kensikora 26 Jan, 2010
I get the form information but no attachment. Here's my debug info:

# Form passed first SPAM check OK
# Form passed the submissions limit (if enabled) OK
# Form passed the Image verification (if enabled) OK
# Form passed the server side validation (if enabled) OK
# $_POST Array: Array ( [text_4] => Ken [text_5] => [email]ken@richmonder.com[/email] [text_3] => test [chrono_verification] => LzKx4 [button_7] => Submit [2df17f5161ad5cde4110d77cb58a4245] => 1 [1cf1] => 28b24c3afa6ed59eb3b8cf4867e7448f [chronoformname] => Contact )
# $_FILES Array: Array ( [file_7] => Array ( [name] => repower.doc [type] => application/msword [tmp_name] => /tmp/php7JFgTa [error] => 0 [size] => 10240 ) )
# Form passed the plugins step (if enabled) OK
# An email has been SENT successfully from (Ken)ken@xxxxx.com to [email]ken@xxxxxx.com[/email]
# Debug End
#
Redirect link set, click to test:

Looks like an error in the tmp_name above ???

Thanks,

Ken
GreyHead 26 Jan, 2010
Hi Ken,

There's no error on the file upload. Is the file in the correct folder? Do you have attachments enabled in the Email Setup? What do you see in the dummy email on the debug page?

Bob
kensikora 30 Jan, 2010
Hello, and thanks for the reply.

I turns out that the file types were not correctly configured, I changed that to: file_7:zip|jpg|doc|gif|pdf|docx|png|psd|txt|{10240KB-1KB}

and it comes through fine.
GreyHead 30 Jan, 2010
Hi kensikora,

Technically that might allow files with no suffix. This would be better
file_7:zip|jpg|doc|gif|pdf|docx|png|psd|txt{10240-1}

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