mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 22:40:26 +01:00
Increase max size of multi-part viewer
This commit is contained in:
@@ -23,7 +23,8 @@ export function MultipartViewer({ response }: Props) {
|
||||
const contentTypeHeader = getContentTypeFromHeaders(response.headers);
|
||||
const boundary = contentTypeHeader?.split('boundary=')[1] ?? 'unknown';
|
||||
|
||||
const parsed = parseMultipart(body.data, { boundary });
|
||||
const maxFileSize = 1024 * 1024 * 10; // 10MB
|
||||
const parsed = parseMultipart(body.data, { boundary, maxFileSize });
|
||||
const parts = Array.from(parsed);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user