Skip to content

Commit

Permalink
Merge pull request #1540 from FlowFuse/hardillb-patch-1
Browse files Browse the repository at this point in the history
Allow RED.settings.ui as fallback settings for size
  • Loading branch information
Steve-Mcl authored Dec 18, 2024
2 parents a0c4941 + bb7363a commit c9e45ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/widgets/ui_file_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c9e45ff

Please sign in to comment.