Prado\Web\UI\WebControls\TFileUpload::loadPostData PHP Method

loadPostData() public method

This method is primarly used by framework developers.
public loadPostData ( $key, $values ) : boolean
return boolean whether the data of the control has been changed
    public function loadPostData($key, $values)
    {
        if (isset($_FILES[$key])) {
            $this->_fileName = $_FILES[$key]['name'];
            $this->_fileSize = $_FILES[$key]['size'];
            $this->_fileType = $_FILES[$key]['type'];
            $this->_errorCode = $_FILES[$key]['error'];
            $this->_localName = $_FILES[$key]['tmp_name'];
            return $this->_dataChanged = true;
        } else {
            return false;
        }
    }