mirror of
https://github.com/outline/outline.git
synced 2026-12-04 10:24:43 +03:00
Increase JSON payload limit to 5MB for API requests (#10287)
- Add jsonLimit: 5MB to bodyParser configuration in API routes - Fixes issue with 413 'request entity too large' errors when uploading large documents via API - Resolves #10239 Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b69feb50a7
commit
1aa05b797c
1 file changed
+1
@@ -60,6 +60,7 @@ api.use(
|
||||
),
|
||||
maxFieldsSize: 10 * 1024 * 1024,
|
||||
},
|
||||
jsonLimit: 5 * 1024 * 1024, // 5MB limit for JSON payloads
|
||||
})
|
||||
);
|
||||
api.use(coalesceBody());
|
||||
|
||||
Reference in new issue
Block a user