public function file($label, $name, $value = null)
{
$control = $this->builder->file($name)->value($value);
$label = $this->builder->label($label, $name)->addClass($this->getLabelClass())->addClass('control-label')->forId($name);
$control->id($name);
$formGroup = new HorizontalFormGroup($label, $control, $this->getControlSizes());
if ($this->builder->hasError($name)) {
$formGroup->helpBlock($this->builder->getError($name));
$formGroup->addClass('has-error');
}
return $formGroup;
}