diff --git a/packages/cli/src/webhooks/webhook-helpers.ts b/packages/cli/src/webhooks/webhook-helpers.ts index 064ef95eb1..1827fe7ed3 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) => {