Update wording

This commit is contained in:
Gabriel Augendre 2023-01-06 15:29:57 +01:00
parent 4d5122eb24
commit 4bee1156b1

View file

@ -132,7 +132,7 @@ void onUploadFile(AsyncWebServerRequest *request, String filename, size_t index,
{ {
if (!index) if (!index)
{ {
Serial.printf("UploadStart: %s\n", filename.c_str()); Serial.printf("Upload start: %s\n", filename.c_str());
String filePath = "/" + filename; String filePath = "/" + filename;
request->_tempFile = SD.open(filePath, FILE_WRITE); request->_tempFile = SD.open(filePath, FILE_WRITE);
} }
@ -149,7 +149,7 @@ void onUploadFile(AsyncWebServerRequest *request, String filename, size_t index,
if (final) if (final)
{ {
Serial.printf("UploadEnd: %s, %u B\n", filename.c_str(), index + len); Serial.printf("Upload end: %s, %u B\n", filename.c_str(), index + len);
request->_tempFile.close(); request->_tempFile.close();
request->redirect("/"); request->redirect("/");
} }