Skip to content

Commit

Permalink
prevent upload without file
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian committed Jul 6, 2022
1 parent fa18b0f commit a7e7d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void setupPages(AsyncWebServer *server, ModbusClientRTU *rtu, ModbusBridgeWiFi *
auto *response = request->beginResponseStream("text/html");
sendResponseHeader(response, "Firmware Update");
response->print("<form method=\"post\" enctype=\"multipart/form-data\">"
"<input type=\"file\" name=\"file\" id=\"file\"/>"
"<input type=\"file\" name=\"file\" id=\"file\" required/>"
"<p></p>"
"<button class=\"r\">Upload</button>"
"</form>"
Expand Down

0 comments on commit a7e7d3f

Please sign in to comment.