This commit is contained in:
Stefan Ostermann 2024-07-04 23:41:20 +02:00
parent 08f3ade9a0
commit f1d9d96a30
1 changed files with 2 additions and 1 deletions

View File

@ -130,6 +130,7 @@ String humanReadableSize(const size_t bytes) {
}
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) {
String logmessage;
if (!index) {
logmessage = "Upload Start: " + String(filename);
// open the file on first call and store the file handle in the request object
@ -142,7 +143,7 @@ void handleUpload(AsyncWebServerRequest *request, String filename, size_t index,
request->_tempFile.write(data, len);
//logmessage = "Writing file: " + String(filename) + " index=" + String(index) + " len=" + String(len);
Serial.println(logmessage);
//Serial.println(logmessage);
}
if (final) {