private function checkParameters() { // Check path. if (!is_dir($this->path)) { throw new InvalidConfigException($this->path . ' is not a directory.'); } if (!is_writable($this->path)) { throw new InvalidConfigException($this->path . ' is not writable.'); } // Check chunksize. $bytes = HumanHelper::maxBytesUpload(); if ($this->chunksize >= $bytes) { throw new InvalidConfigException('Chunksize value must be less than ' . $bytes . 'B. Current value is ' . $this->chunksize . '.'); } }