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 5513ee89b1..b88630e815 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 @@ function upload() { 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;