code: function checkUploadMaxFileSize($min = null, $max = null)
      {
          $postMaxSize = ini_get('post_max_size');
          $uploadMaxFileSize = ini_get('upload_max_filesize');
          if ($min !== null) {
              $minCheckResult = $this->compareByteSize($postMaxSize, $min, '>=') && $this->compareByteSize($uploadMaxFileSize, $min, '>=');
          } else {
              $minCheckResult = true;
          }
          if ($max !== null) {
              $maxCheckResult = $this->compareByteSize($postMaxSize, $max, '<=') && $this->compareByteSize($uploadMaxFileSize, $max, '<=');
          } else {
              $maxCheckResult = true;
          }
  
          return ($minCheckResult && $maxCheckResult);
      }
docs: Checks if upload max file size matches the given range.
  @param string|null $min verbose file size minimum required value, pass null to skip minimum check.
  @param string|null $max verbose file size maximum required value, pass null to skip maximum check.
  @return bool success.