Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By Azmath
#44765 Hi, I have setup a webserver in ESP that allows me to upload files. I have extended the HttpServer class so that it writes the data that it receives to an SD card packet by packet. Anyways, my project works perfectly for small files that are less than 1 MB. It works 80% of the time for files upto 7-8MB. But it fails randomly for larger files.

On enabling some debug outputs I have discovered that there are some arbitrary packet drops during the transfer causing the file to be corrupted. I am unable to figure out if its a Sming issue or ESP TCP stack issue. I have spent the past three days trying to figure it out but so far no luck which leads me to conclude that its an internal stack issue. Can anyone confirm if ESP cannot handle large file transfers!? Strangely I am able to download huge files from the same server. Just not upload.

Has anyone tried something similar ?, please let me know about your experience.