I’m working on an import that’s going live on Monday on a Discourse.org hosted site. There are some attachments bigger than 102400KB. Is there a way to increase that limit on the development environment so that I can include them?
AI-generated summary
pfaffman is working on an import with attachments larger than the 102400KB limit on their Discourse.org hosted site. They asked if the limit can be increased on their development environment. gerhard provided a link to a relevant code section, and pfaffman found the solution to increase get_max_attachment_size. pfaffman plans to create a pull request (PR) to move this feature to base.rb, but was waiting for another PR (https://github.com/discourse/discourse/pull/5224) to be merged. zogstrip has since merged the PR, and pfaffman is now using emacs keybindings with rubocop to check and fix their code.
I’ll give that a shot, but what I think I’m asking is if there’s a a way to increase get_max_attachment_size.
Oooh! But it looks like that’s what I needed.
Looks like another feature that should get moved to base.rb. ![]()
Glad I could help. ![]()
And feel free to create a PR ![]()
I’ll add it to the list. I’m waiting for my last one (add users with invalid email addresses by pfaffman · Pull Request #5224 · discourse/discourse · GitHub) to get pulled in. If someone (other than rubocop) doesn’t like it, I’ll split it up.
Just merged it and made
happy.
Many thanks! I’ve jumped on the bandwagon now and have emacs key bindings in place to check and fix the current buffer with rubocop.