public function basedir() { $uploads = $this->get_uploads_dir(); return (string) $uploads['basedir']; }