Upload File Using Upload Handler Class

	function upload_id_attachment($member_id){
		$upload_dir = $this->upload_handler->std_path('uploads/members/' . $member_id . '/register/');
		$options = array(
			'upload_dir' => FCPATH . $upload_dir,
            'upload_url' => base_url() . 'uploads/members/' . $member_id . '/register/',
            'change_name' => true
		);

		$result = $this->upload_handler->upload($options);
		if($result == false){
			$this->failed_response(0, $this->upload_handler->err);
		}

		return $result;
	}