mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 07:41:22 +02: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 contentTypeHeader = getContentTypeFromHeaders(response.headers);
|
||||||
const boundary = contentTypeHeader?.split('boundary=')[1] ?? 'unknown';
|
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);
|
const parts = Array.from(parsed);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user