Increase file size on development environment?


(Jay Pfaffman) #1

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?


(Gerhard Schlager) #2

(Jay Pfaffman) #3

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. :wink:


(Gerhard Schlager) #4

Glad I could help. :slight_smile:
And feel free to create a PR :wink:


(Jay Pfaffman) #5

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.


(Régis Hanol) #6

Just merged it and made :robot: happy.


(Jay Pfaffman) #7

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.