private function limit_filesize($length) {

        // Limit to $this->filesizelimit.
        if (is_numeric($this->filesizelimit) && $length > $this->filesizelimit) {
            $length = floor($this->filesizelimit);
        }

        return $length;
    }
private function limit_filesize($length) {

        // Limit to $this->filesizelimit.
        if (is_numeric($this->filesizelimit) && $length > $this->filesizelimit) {
            $length = floor($this->filesizelimit);
        }

        return $length;
    }
private function limit_filesize ( $ length ) { // Limit to $this->filesizelimit. if ( is_numeric ( $ this -> filesizelimit ) && $ length > $ this -> filesizelimit ) { $ length = floor ( $ this -> filesizelimit ) ; } return $ length ; }
Restricts the binary file size if necessary

@param int $length The total length
@return int The limited length if a limit was specified.
Restricts the binary file size if necessary