Skip to content

Conversation

@jcatrysse
Copy link

Added a fix to have the max-number-of-files-message consider window.maxFileUploads

Reference: https://www.redmine.org/issues/18555

This, however, does not entirely resolve the issue because the message will always state the max_number_of_files = 10.

In: app/views/attachments/_form.html.erb

:max_number_of_files => (multiple ? 10 : 1)

should be:

:max_number_of_files => (multiple ? Setting.plugin_that_attachments_limit['attachments_limit'].to_i : 1)

I'm not confident how to change that in an orderly fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant