public function setAllowedMimeTypes($allowed_mimes) { $this->config['allowed_mime_types'] = $allowed_mimes; return $this; }