Files
tonberry-pico/software
Matthias Blankertz 73da134a12 fix: webserver: file uploading
- Fix upload of files <= Request.max_body_length
  File uploads smaller than the limit were not given to the handler as a
  stream by microdot, instead the content is directly stored in the
  request.body.

- Refactor stream to file copy into a helper method

- Increase the copy buffer size to 16k

- Call app.reset_idle_timeout() periodically during file uploads to
  avoid the device turning off when uploading large files while on
  battery.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
2025-12-27 15:23:48 +01:00
..
2025-12-23 12:00:05 +01:00
2025-12-27 15:23:48 +01:00
2025-04-01 22:05:30 +02:00
2025-12-16 20:41:40 +01:00