beginChunkedResponse missing request object #266
Replies: 2 comments 1 reply
-
I have found a way to improve the handling of more then one request.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing. Yes this is pretty much the idea! Controlling the chunks and keeping track of the indexes. Just one comment:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an issue regarding the beginChunkedResponse
I am missing the AsyncWebServerRequest *request object.
As then I can use the File _tempFile; or void *_tempObject; object to keep track of what file I need to read or generate if it
If I use a global object this will be overwritten is more then one Request is made.
Or is there another way to do this? example ?
The “
request->send(SD, request->url(), String(), false);
” will not work for me as I am using the https://github.com/adafruit/SdFatThis Code below will work for one Response at a time,
related issue
related issue2
You can find my code portable-Async-disk-driveEx this is under construction
Or for SD card <= 32GB portable-Async-disk-drive and this is working
And for the LittleFS this version will work ESP-LittleFS-Async-Web-Server
Beta Was this translation helpful? Give feedback.
All reactions