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
@@ -168,7 +168,7 @@ Links between the imported files are rewritten as they land: a link to a
|
||||
markdown file becomes the document's address, a link to an image becomes its
|
||||
media URL, and anything pointing outside the upload — a URL, a file that was not
|
||||
uploaded — is left exactly as it was written. Absolute paths, `..` segments and
|
||||
anything a zip smuggles in are refused, and the whole upload is bounded by
|
||||
anything a zip smuggles in are refused, and both the upload and what a zip unpacks to are bounded by
|
||||
`WORKSPACE_MAX_UPLOAD_MB`.
|
||||
|
||||
A document has a real address, `/n/<space>/<folder>/<slug>`, which is what those
|
||||
|
||||
Reference in new issue
Block a user