i have this self problem

sorry for my bad englisch :oops:
i have replaced the coments box in checkout_payment.php
<tr>
<td><?php echo tep_draw_textarea_field('comments', 'virtual', '60', '5'); ?></td>
</tr>
to
<tr>
<td><?php echo tep_draw_file_field('comments', 'file'); ?></td>
</tr>
and add this funktion in includes/functions/html_output.php
this code assimilatet from admincenter upload funktion
[code}
// Output a form input field
function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {
$field = '<input type="' . $type . '" name="' . $name . '"';
if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= ' value="' . htmlspecialchars(trim($GLOBALS[$name])) . '"';
} elseif (tep_not_null($value)) {
$field .= ' value="' . htmlspecialchars(trim($value)) . '"';
}
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
$field .= '>';
return $field;
}
////
[/code]
this works good
unfortunately left into the data base it must succeed still somehow that the file uploaded becomes registered only
the upload funktion find in admin/categories.php i hope anyone cant help us
sorry for my bad google englisch