classes/Fields/Upload.php
public function render()
    {
        // A file has already been uploaded
        if ($this->value) {

            // If it's required, show the icon but don't enforce it.  There is already
            // a file uploaded after all
            if ($this->isRequired()) {
                $this->setAttribute('required', null);
            }
        }

        // Continue execution
        return parent::render();
    }
public function render()
    {
        // A file has already been uploaded
        if ($this->value) {

            // If it's required, show the icon but don't enforce it.  There is already
            // a file uploaded after all
            if ($this->isRequired()) {
                $this->setAttribute('required', null);
            }
        }

        // Continue execution
        return parent::render();
    }
public function render ( ) { // A file has already been uploaded if ( $ this -> value ) { // If it's required, show the icon but don't enforce it.  There is already // a file uploaded after all if ( $ this -> isRequired ( ) ) { $ this -> setAttribute ( 'required' , null ) ; } } // Continue execution return parent :: render ( ) ; }
Prints out the current file upload field.

@return string An input tag
Prints out the current file upload field .