fix(core): Fix webhook binary data max size configuration (#10897)

This commit is contained in:
Tomi Turtiainen 2024-09-20 14:14:15 +03:00 committed by GitHub
parent e20ab59c1d
commit 693fb7e580
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) => {