feat(core): Allow customizing max file size in form-data payloads for webhooks (#10857)
This commit is contained in:
committed by
GitHub
parent
aa00d9c2ae
commit
a3335e0ecd
@@ -65,6 +65,10 @@ export class EndpointsConfig {
|
||||
@Env('N8N_PAYLOAD_SIZE_MAX')
|
||||
payloadSizeMax: number = 16;
|
||||
|
||||
/** Max payload size for files in form-data webhook payloads in MiB */
|
||||
@Env('N8N_FORMDATA_FILE_SIZE_MAX')
|
||||
formDataFileSizeMax: number = 200;
|
||||
|
||||
@Nested
|
||||
metrics: PrometheusMetricsConfig;
|
||||
|
||||
|
||||
@@ -176,6 +176,7 @@ describe('GlobalConfig', () => {
|
||||
formTest: 'form-test',
|
||||
formWaiting: 'form-waiting',
|
||||
payloadSizeMax: 16,
|
||||
formDataFileSizeMax: 200,
|
||||
rest: 'rest',
|
||||
webhook: 'webhook',
|
||||
webhookTest: 'webhook-test',
|
||||
|
||||
Reference in New Issue
Block a user