|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Streaming file upload to an Arduino FS (DETWS_ENABLE_UPLOAD). More...
#include "ServerConfig.h"Go to the source code of this file.
Streaming file upload to an Arduino FS (DETWS_ENABLE_UPLOAD).
Registers a POST route whose request body is streamed straight into a file on a filesystem (LittleFS / SPIFFS / SD) in FILE_CHUNK_SIZE pieces - the upload never has to fit in RAM. Reuses the parser's streaming-body hook (the same mechanism OTA uses), so it is zero-heap and bounded.
One upload at a time (the device runs a single loop task). Only one streaming sink can be installed, so DETWS_ENABLE_UPLOAD and DETWS_ENABLE_OTA share the parser hook - register whichever you need (not both on the same build).
Definition in file upload_service.h.