 		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();

	return "text/plain";
}

static bool handleFileRead(String path)
{
	log_info("%s\n\r", path.c_str());
	if (path.endsWith("/"))
		path += "index.htm";
	String contentType = getContentType(path);
	String pathWithGz = path + ".gz";
	if (SPIFFS.exists(pathWithGz) || SPIFFS.exists(path)) {

		if (!handleFileRead("/index.html"))
			server->send(404, "text/plain", "FileNotFound");
	}
	log_dbg("out\r\n");
}

static void handleSave(void)
