From 7dd7bbbee1f42d5f76a8f57a6658d0fb33bae12d Mon Sep 17 00:00:00 2001 From: Daniel Plasa Date: Tue, 26 May 2020 19:25:43 +0200 Subject: fix counting of transfered bytes --- espFtpServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/espFtpServer.cpp b/espFtpServer.cpp index 5158243..96f7f3e 100644 --- a/espFtpServer.cpp +++ b/espFtpServer.cpp @@ -1092,6 +1092,7 @@ bool FtpServer::doStore() FTP_DEBUG_MSG("Transfer %d bytes client->fs", navail); navail = data.read(fileBuffer, navail); file.write(fileBuffer, navail); + bytesTransfered += navail; } if (!data.connected() && (navail <= 0)) -- cgit v1.2.3