From d5f76b16b9ec7a62ac7d9c72b4a2f57453b75edf Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Wed, 30 Dec 2020 14:52:39 -0800 Subject: [PATCH] write readLength to debug console --- src/meshwifi/meshhttp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meshwifi/meshhttp.cpp b/src/meshwifi/meshhttp.cpp index d6d2e22b..678c89de 100644 --- a/src/meshwifi/meshhttp.cpp +++ b/src/meshwifi/meshhttp.cpp @@ -791,10 +791,12 @@ void handleFormUpload(HTTPRequest *req, HTTPResponse *res) file.write(buf, readLength); fileLength += readLength; + DEBUG_MSG("readLength - %i", readLength); + // Abort the transfer if there is less than 50k space left on the filesystem. if (SPIFFS.totalBytes() - SPIFFS.usedBytes() < 51200) { file.close(); - res->println("

Write aborted! File is won't fit!

"); + res->println("

Write aborted! Reserving 50k on filesystem.

"); delete parser; return;