From c81c6cfb3a3c5d717585546165b109e0eeab9504 Mon Sep 17 00:00:00 2001 From: Anuj Deshpande Date: Fri, 13 Dec 2024 10:09:47 +0530 Subject: [PATCH] Fix upload_script to actually use max size variables --- .../http_server/file_serving/main/upload_script.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/protocols/http_server/file_serving/main/upload_script.html b/examples/protocols/http_server/file_serving/main/upload_script.html index 5513ee89b153..b88630e81545 100644 --- a/examples/protocols/http_server/file_serving/main/upload_script.html +++ b/examples/protocols/http_server/file_serving/main/upload_script.html @@ -49,8 +49,8 @@

ESP32 File Server

alert("File path on server cannot have spaces!"); } else if (filePath[filePath.length-1] == '/') { alert("File name not specified after path!"); - } else if (fileInput[0].size > 200*1024) { - alert("File size must be less than 200KB!"); + } else if (fileInput[0].size > MAX_FILE_SIZE) { + alert("File size must be less than "+MAX_FILE_SIZE_STR+"!"); } else { document.getElementById("newfile").disabled = true; document.getElementById("filepath").disabled = true;