private function storeValues()
    {
        $this->debug->groupCollapsed(__METHOD__);
        // if (!$this->status['keyVerified']) {
        if (!$this->status['submitted']) {
            // $this->debug->warn('not submitted');
            $this->debug->groupEnd();
            return;
        }
        if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST') {
            $this->debug->warn('POST method');
            if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['CONTENT_LENGTH'] > Str::getBytes(\ini_get('post_max_size'), true)) {
                $this->debug->warn('post_max_size exceeded');
                $this->alerts->add('Your upload has exceeded the '.Str::getBytes(\ini_get('post_max_size')).' limit');
                $this->status['postMaxExceeded'] = true;
            }
            $values = $_POST;
            foreach ($_FILES as $k => $file) {
                if ($file['error'] === UPLOAD_ERR_NO_FILE) {
                    continue;
                }
                if ($file['error'] === UPLOAD_ERR_OK) {
                    // by calling move_uploaded_file, we prevent its automatic deletion
                    \move_uploaded_file($file['tmp_name'], $file['tmp_name']);
                }
                $values[$k] = $file;
                /*
                errors:
                    UPLOAD_ERR_OK => 'There is no error, the file uploaded with success',
                    UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini ('.\ini_get('upload_max_filesize').')',
                    UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form',
                    UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded',
                    UPLOAD_ERR_NO_FILE => 'No file was uploaded',
                    UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder',
                    UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.',
                    UPLOAD_ERR_EXTENSION => 'A PHP extension stopped the file upload.',
                */
            }
            $this->status['submitted'] = true;
            $this->persist->set('submitted', true);
            $this->persist->set('currentPage.values', $values);
        } elseif (\strtolower($this->cfg['attribs']['method']) == 'get') {
            $this->debug->warn('storing GET vals');
            $this->persist->set('currentPage.values', $_GET);
        }
        $this->debug->groupEnd();
    }