ESP32-OTA-and-File-Manager icon indicating copy to clipboard operation
ESP32-OTA-and-File-Manager copied to clipboard

File size limitation of 4kB

Open purehunter1 opened this issue 1 year ago • 2 comments

Hi palmerr23,

Firstly: I really appreciate your work in this project! It does exactly what I was looking for :-)

After implementation in my project, I found, that there is a file size limitation of about 4kB which is too low for my application. I need at least about 8kB. And this is not noted in the "Limitations".

To solve the problem, in a first step I thought, there is the line #define FILEBUFSIZ 4096 which I have just to modify to allocate more buffer. But when I increase this buffer, the program crashes immediately. No need to transmit data. Running on a ESP32-S2 with a low percentage of allocated RAM. After browsing the whole web for hours, I found, that there are limitations in the (synchronous) Arduino Webserver which I guess is the underlaying problem. But as an "Arduino Grade" programmer, it is out of reach for me to do anything on this level.

Do you have an idea how to improve this in your project? Or ist it possible to port this great project to an (async ?) webserver which is capable of handling bigger files? If there was a solution, it would lift this great project on the next level! :-)

purehunter

purehunter1 avatar Feb 12 '24 07:02 purehunter1