# Increase file size on development environment?

**URL:** https://meta.discourse.org/t/increase-file-size-on-development-environment/72539
**Category:** Development
**Created:** [October 21, 2017, 4:57pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539 "2017-10-21T16:57:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 21, 2017, 4:57pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/1 "2017-10-21T16:57:17Z")

</div>

I’m working on an import that’s going live on Monday on a [Discourse.org](http://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?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [October 21, 2017, 5:28pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/2 "2017-10-21T17:28:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 21, 2017, 5:31pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/3 "2017-10-21T17:31:34Z")

</div>

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`. 😉

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [October 22, 2017, 10:41pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/4 "2017-10-22T22:41:48Z")

</div>

Glad I could help. 🙂  
And feel free to create a PR 😉

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 22, 2017, 11:46pm UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/5 "2017-10-22T23:46:11Z")

</div>

> [@gerhard](#):
>
> 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](https://github.com/discourse/discourse/pull/5224)) to get pulled in. If someone (other than rubocop) doesn’t like it, I’ll split it up.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 23, 2017, 8:22am UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/6 "2017-10-23T08:22:37Z")

</div>

> [@pfaffman](#):
>
> If someone (other than rubocop) doesn’t like it, I’ll split it up.

Just merged it and made 🤖 happy.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 23, 2017, 11:33am UTC](https://meta.discourse.org/t/increase-file-size-on-development-environment/72539/7 "2017-10-23T11:33:04Z")

</div>

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.
