mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
uploads: stream to disk instead of holding them in memory
Media uploads and imports now write each multipart field to uploads/ a chunk at a time, and a zip is unpacked from disk on the blocking pool, so the limit bounds disk rather than memory. What an archive unpacks to is held to the same limit. The default goes from 64 MB to 1024 MB.
This commit is contained in:
1 parent
9255d36b61
commit
3d6944c860
6 files changed
+297
-97
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ description = "A terminal-themed personal diary for the browser"
|
||||
|
||||
[dependencies]
|
||||
axum = { version = "0.8", features = ["multipart", "macros"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "fs"] }
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal", "fs", "io-util"] }
|
||||
tower = "0.5"
|
||||
tokio-util = { version = "0.7", features = ["io"] }
|
||||
tower-http = { version = "0.6", features = ["trace", "compression-gzip", "limit", "set-header"] }
|
||||
|
||||
Reference in new issue
Block a user