diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c
index 076d457773c9ef573a8bf2d0c6da9d109d06fc5d..83ec882c3a1dea27f31e9f216a23f38c3106c36e 100644
--- a/src/sbbs3/ftpsrvr.c
+++ b/src/sbbs3/ftpsrvr.c
@@ -827,7 +827,8 @@ static void send_thread(void* arg)
 			if(!xfer.tmpfile && !xfer.delfile && !(scfg.dir[f.dir]->misc&DIR_NOSTAT))
 				inc_download_stats(&scfg, 1, (ulong)total);
 
-			mqtt_file_download(&mqtt, xfer.user, &f, total, xfer.client);
+			if(!xfer.tmpfile)
+				mqtt_file_download(&mqtt, xfer.user, &f, total, xfer.client);
 		}
 
 		if(xfer.credits) {