Forums

Problem with attachment

yadichan 16 Apr, 2009
Hi. I created a form for file upload. The file uploads with no error, but the email doesn't have any attachments.
I added enctype='multipart/form-data' to the "Form tag attachment" in teh general tab. The uploads folder has permissions set to 777. I don't know what else to do. I'd appreciate any help.
The debug text:

$_POST array: Array ( [nombre_txt] => Yadira [email_txt] => yadichan@prueba.com [8bc5f855b2e4e88b30263e117dcd900a] => 1 )
$_FILES array: Array ( [file_1] => Array ( [name] => certificado yadi.pdf [type] => application/pdf [tmp_name] => /tmp/phpl1wYwK [error] => 0 [size] => 139724 ) ) 
GreyHead 16 Apr, 2009
Hi yadichan,

Do you have attachments enabled on the Email Setup Properties?

Bob
Max_admin 20 Apr, 2009
Please ensure upload fields names are the same as the files fields names in the HTML

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yadichan 26 Apr, 2009
I checked the html and the field name was the same, but for some reason the id was different. I changed it and now it works perfectly. Thanks!
This topic is locked and no more replies can be posted.