If you use submission templates for forms with file uploads the FileUpload fields take the field names/aliases and not the user input values.
As a quick hack to correct this for email forms with attachment fields for example.
Go to FormBuilder/action.default.php
find the smarty->assigns for the submissions template around line 132 and look for
Code: Select all
$this->smarty->assign($aeform->MakeVar($field->GetName()),
$replVal);
$this->smarty->assign('fld_'.$field->GetId(),$replVal);
$this->smarty->assign($aeform->MakeVar($field->GetName()).'_array',
$replVals);
$this->smarty->assign('fld_'.$field->GetId().'_array',$replVals);
Code: Select all
if( isset( $_FILES[$replVal] ) && $_FILES[$replVal]['size'] > 0 )
{
$thisFile =& $_FILES[$replVal];
$replVal = $thisFile[name];
}