diff --git a/FormBuilder.php b/FormBuilder.php index 3ad421a..2102d8f 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -196,13 +196,16 @@ class FormBuilder { // in the model instance if one is set. Otherwise we will just use empty. $id = $this->getIdAttribute($name, $options); - $value = $this->getValueAttribute($name, $value); - - $merge = compact('type', 'value', 'id'); + if ($type != 'file') + { + $value = $this->getValueAttribute($name, $value); + } // Once we have the type, value, and ID we can marge them into the rest of the // attributes array so we can convert them into their HTML attribute format // when creating the HTML element. Then, we will return the entire input. + $merge = compact('type', 'value', 'id'); + $options = array_merge($options, $merge); return 'html->attributes($options).'>';