public function __toString()
{
$str = "";
if ($this->value) {
$str = '<small class="text-danger">Current file: ' . $this->value . '</small>';
}
$str .= sprintf('<input class="file_upload" type="%s" name="%s" #>', $this->type, $this->name);
return $this->toString($str);
}