From 6d6dde788201697ceb6f4af7c54465510d006003 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:14:15 +0300 Subject: [PATCH] fix(core): Fix webhook binary data max size configuration (#10897) --- packages/cli/src/webhooks/webhook-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/webhooks/webhook-helpers.ts b/packages/cli/src/webhooks/webhook-helpers.ts index 064ef95eb14a6d..1827fe7ed301e5 100644 --- a/packages/cli/src/webhooks/webhook-helpers.ts +++ b/packages/cli/src/webhooks/webhook-helpers.ts @@ -219,7 +219,7 @@ export async function executeWebhook( const form = formidable({ multiples: true, encoding: encoding as formidable.BufferEncoding, - maxFileSize: formDataFileSizeMax, + maxFileSize: formDataFileSizeMax * 1024 * 1024, // TODO: pass a custom `fileWriteStreamHandler` to create binary data files directly }); req.body = await new Promise((resolve) => {