Utility/Fields/File.php
public function render()
    {
        $attrs = array();
        $id = $this->getHtmlId();
        $name = $this->getHtmlName();
        $label = $this->getLabel();
        $img = '';
        $cssClass = 'file';
        $errorMessage = '';
        $attrs['id'] = $id;
        if (!$this->isValid) {
            $errorMessage = sprintf("<span class='error'>%s</span>", $this->getErrorMessage());
            $cssClass .= ' error';
        }

        if ($this->getOption('required') == 'true') {
            $cssClass .= ' required';
        }
        if ($this->value) {
            $imgPath = $this->getDisplayValue();
            $img = sprintf("<img src='%s' width='90' height='90' />", $imgPath);
        }
        $attrs['class'] = $cssClass;

        $html = '';
        if (!empty($label)) {
            $html .= FormFacade::label($label);
        }
        $html                .= FormFacade::file($name, $attrs) . $errorMessage;
        $html                .= $img;

        $html = sprintf($this->htmlItemTemplate, $html);

        return $html;
    }
public function render()
    {
        $attrs = array();
        $id = $this->getHtmlId();
        $name = $this->getHtmlName();
        $label = $this->getLabel();
        $img = '';
        $cssClass = 'file';
        $errorMessage = '';
        $attrs['id'] = $id;
        if (!$this->isValid) {
            $errorMessage = sprintf("<span class='error'>%s</span>", $this->getErrorMessage());
            $cssClass .= ' error';
        }

        if ($this->getOption('required') == 'true') {
            $cssClass .= ' required';
        }
        if ($this->value) {
            $imgPath = $this->getDisplayValue();
            $img = sprintf("<img src='%s' width='90' height='90' />", $imgPath);
        }
        $attrs['class'] = $cssClass;

        $html = '';
        if (!empty($label)) {
            $html .= FormFacade::label($label);
        }
        $html                .= FormFacade::file($name, $attrs) . $errorMessage;
        $html                .= $img;

        $html = sprintf($this->htmlItemTemplate, $html);

        return $html;
    }
Render html of field.

@return string