Skip to content

Commit

Permalink
Allow RED.settings.ui as fallback settings for size
Browse files Browse the repository at this point in the history
This is part of FlowFuse/flowfuse#4933
  • Loading branch information
hardillb authored Dec 17, 2024
1 parent a0c4941 commit bb7363a
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 bb7363a

Please sign in to comment.