Skip to content

Commit

Permalink
Merge branch 'contrib/github_pr_15023' into 'master'
Browse files Browse the repository at this point in the history
fix(html): Fix upload_script to actually use max size variables (GitHub PR)

Closes IDFGH-14227

See merge request espressif/esp-idf!35803
  • Loading branch information
mahavirj committed Dec 23, 2024
2 parents 19b5381 + c81c6cf commit 4e0a45b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ <h2>ESP32 File Server</h2>
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;
Expand Down

0 comments on commit 4e0a45b

Please sign in to comment.