[eluser]OverZealous[/eluser]
[quote author="shawn" date="1251447031"]OverZealous, any chance you can include something like [...] input_file [...] in the htmlform extension?[/quote]
Sure, I don't see why not. I modified it to look like this, though, since a file input field cannot have a default value:
Code:
// render a file upload input
function _input_file($object, $id, $value, $options)
{
$a = $options + array(
'type' => 'file',
'name' => $id,
'id' => $id
);
return $this->_render_node('input', $a);
}
So, it's included, documented, and ready for shipping! ;-)