Skip to content

Commit 693fb7e

Browse files
authored
fix(core): Fix webhook binary data max size configuration (#10897)
1 parent e20ab59 commit 693fb7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/webhooks/webhook-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export async function executeWebhook(
219219
const form = formidable({
220220
multiples: true,
221221
encoding: encoding as formidable.BufferEncoding,
222-
maxFileSize: formDataFileSizeMax,
222+
maxFileSize: formDataFileSizeMax * 1024 * 1024,
223223
// TODO: pass a custom `fileWriteStreamHandler` to create binary data files directly
224224
});
225225
req.body = await new Promise((resolve) => {

0 commit comments

Comments
 (0)