maximum) and $file['size'] > $this->maximum) { return false; } if ( ! is_null($this->extensions) and ! in_array(File::extension($file['name']), $this->extensions)) { return false; } return true; } }