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;