fuel/fuel/core/classes/form/instance.php
public function file($field, array $attributes = array())
	{
		if (is_array($field))
		{
			$attributes = $field;
		}
		else
		{
			$attributes['name'] = (string) $field;
		}
		$attributes['type'] = 'file';

		return $this->input($attributes);
	}
public function file($field, array $attributes = array())
	{
		if (is_array($field))
		{
			$attributes = $field;
		}
		else
		{
			$attributes['name'] = (string) $field;
		}
		$attributes['type'] = 'file';

		return $this->input($attributes);
	}
public function file ( $ field , array $ attributes = array ( ) ) { if ( is_array ( $ field ) ) { $ attributes = $ field ; } else { $ attributes [ 'name' ] = ( string ) $ field ; } $ attributes [ 'type' ] = 'file' ; return $ this -> input ( $ attributes ) ; }
Create a file upload input field

@param   string|array  either fieldname or full attributes array (when array other params are ignored)
@param   array
@return  string
Create a file upload input field