Moved upload_config to class, now using $this->upload_config