diff --git a/nodes/widgets/ui_file_input.js b/nodes/widgets/ui_file_input.js index 301ce443..c9e7b72d 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