# Can't Increase the Max File Size

**URL:** https://meta.discourse.org/t/cant-increase-the-max-file-size/31839
**Category:** Support
**Created:** [6 Agosto , 2015 18:29 UTC](https://meta.discourse.org/t/cant-increase-the-max-file-size/31839 "2015-08-06T18:29:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jfmgonzales](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jfmgonzales/32/44630_2.png) [@jfmgonzales](https://meta.discourse.org/u/jfmgonzales)
#### Post date: [6 Agosto , 2015 20:33 UTC](https://meta.discourse.org/t/cant-increase-the-max-file-size/31839/2 "2015-08-06T20:33:10Z")

</div>

You can SSH into discourse while you’re SSH’ed into your Droplet. From there, you could `nano /etc/nginx/conf.d/discourse.conf` and edit the file directly.

Or I guess you could also copy the file from inside discourse to your host server,

```
$ scp discourseIP:/etc/nginx/conf.d/discourse.conf ~/discourse.conf

```

edit the file, and then `scp` it back into the discourse container.

```
$ scp ~/discourse.conf discourseIP:/etc/nginx/conf.d/discourse.conf

```

Either way, once you’ve edited the file, you would have to tell the contained instance of `nginx` to reload its configuration, like so:

```
$ docker exec discourse nginx -s reload

```

#Update

It turns out that there’s a parameter for it in the \*.yml configuration. Just add `upload_size: 5000M`.

Source: [Change the maximum attachment/upload size](https://meta.discourse.org/t/changing-max-attachment-size/26435/2)

---

_[View the full topic](https://meta.discourse.org/t/cant-increase-the-max-file-size/31839)._
