jczic / MicroWebSrv2

The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
https://github.com/jczic/MicroWebSrv2
MIT License
659 stars 97 forks source link

tckt33: support multipart/form-data (i.e. file upload) #70

Open J4Chard opened 3 years ago

J4Chard commented 3 years ago

File Upload (Issue 33) was closed with the suggestion to use a websocket server. For my use, adding this functionality to the web server is the more desirable approach.

This patch does not do quite exactly what I want, unfortunately. It works great for small file upload (up to about 2 MB) but doesn't handle larger files. Maybe someone else can dig into the lower-level details to figure out what / where the size restriction is -- and how to overcome it.

antonvh commented 2 years ago

Great work! 👍