Increase file size on development environment?

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?

2 Likes

https://github.com/discourse/discourse/blob/2fe2c1bfb9918ae1d49aa534027bf825a64bc4aa/script/import_scripts/phpbb3/importer.rb#L45-L51

3 Likes

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:

1 Like

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

1 Like

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.

4 Likes

Just merged it and made :robot: happy.

2 Likes

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.

2 Likes