 		File file = SPIFFS.open(path, "r");
 		size_t sent = server->streamFile(file, contentType);
 		file.close();
+		path = String();
 		contentType = String();
 		pathWithGz = String();
+		log_dbg("out\r\n");
 		return true;
 	}
+	path = String();
 	contentType = String();
 	pathWithGz = String();
+	log_dbg("out not exists\r\n");
 	return false;
 }
 
 static void handleFileUpload(void)
 {
+	log_dbg("in\r\n");
 	if (server->uri() != "/edit")
 		return;
 	HTTPUpload& upload = server->upload();

	output += "]";
	server->send(200, "text/json", output);
	path = String();
}

static void handleRoot(void)
{
	if (b_cfg_ready) {
		String message = String((const char *)g_nd.uid);
		message += " alive ";

	else if (filename.endsWith(".htm")) return "text/html";
	else if (filename.endsWith(".html")) return "text/html";
	else if (filename.endsWith(".css")) return "text/css";
	else if (filename.endsWith(".json")) return "text/json";
	else if (filename.endsWith(".js")) return "application/javascript";
	else if (filename.endsWith(".png")) return "image/png";
	else if (filename.endsWith(".gif")) return "image/gif";
