فهرست منبع

fix html-upload #959

Frank Haverland 3 سال پیش
والد
کامیت
231ac5305f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      code/components/jomjol_fileserver_ota/server_ota.cpp

+ 2 - 2
code/components/jomjol_fileserver_ota/server_ota.cpp

@@ -349,11 +349,11 @@ esp_err_t handler_ota_update(httpd_req_t *req)
         std::string in, out, zw;
 
         in = "/sdcard/firmware/html.zip";
-        out = "/sdcard/html/";
+        out = "/sdcard/html";
 
         delete_all_in_directory(out);
 
-        unzip(in, out);
+        unzip(in, out+"/");
         zw = "HTML Update Successfull!<br><br>No reboot necessary";
         httpd_resp_sendstr_chunk(req, zw.c_str());
         httpd_resp_sendstr_chunk(req, NULL);