From bb7363a5417bf1b8bb2874da277d7354ad708ba1 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Tue, 17 Dec 2024 15:52:55 +0000 Subject: [PATCH] Allow RED.settings.ui as fallback settings for size This is part of FlowFuse/flowfuse#4933 --- nodes/widgets/ui_file_input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/widgets/ui_file_input.js b/nodes/widgets/ui_file_input.js index 301ce4433..c9e7b72dd 100644 --- a/nodes/widgets/ui_file_input.js +++ b/nodes/widgets/ui_file_input.js @@ -19,7 +19,7 @@ module.exports = function (RED) { // get max file size supported const MAX_FILESIZE_DEFAULT = 1e6 - const maxFileSize = RED.settings.dashboard?.maxHttpBufferSize || MAX_FILESIZE_DEFAULT + const maxFileSize = RED.settings.dashboard?.maxHttpBufferSize || RED.settings.ui?.maxHttpBufferSize || MAX_FILESIZE_DEFAULT config.maxFileSize = maxFileSize