# Max upload size error

**URL:** https://meta.discourse.org/t/max-upload-size-error/283622
**Category:** Support
**Created:** [October 27, 2023, 3:20am UTC](https://meta.discourse.org/t/max-upload-size-error/283622 "2023-10-27T03:20:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Skeleton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skeleton/32/335075_2.png) [@Skeleton](https://meta.discourse.org/u/Skeleton)
#### Post date: [October 27, 2023, 3:20am UTC](https://meta.discourse.org/t/max-upload-size-error/283622/1 "2023-10-27T03:20:17Z")

</div>

I tried to set my upload limit to 1gb because i want to host a few long videos from the staff team. I already followed the tutorial but i still get the error. I modified and added the new limit in app.yml and in the settings in-app and rebuilt.  
Anybody has a fix?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 27, 2023, 6:21am UTC](https://meta.discourse.org/t/max-upload-size-error/283622/2 "2023-10-27T06:21:54Z")

</div>

I don’t have any kind tech suggestion but an UX suggestion I have: don’t do that.

Discourse is not a streaming service and with that you are just overloading bandwidth and storages of devices.

---

<div class="post-metadata">

### Author: ![Skeleton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skeleton/32/335075_2.png) [@Skeleton](https://meta.discourse.org/u/Skeleton)
#### Post date: [October 27, 2023, 12:52pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/4 "2023-10-27T12:52:22Z")

</div>

Thanks you for the suggestion, but i have resources and i will not upload too many videos. Now i get the error for a 150mb video.

---

<div class="post-metadata">

### Author: ![Skeleton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skeleton/32/335075_2.png) [@Skeleton](https://meta.discourse.org/u/Skeleton)
#### Post date: [October 29, 2023, 3:57pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/5 "2023-10-29T15:57:25Z")

</div>

Anybody has a solution to this?

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [August 30, 2024, 5:40pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/6 "2024-08-30T17:40:42Z")

</div>

I tried to upload an 18MB file with a configured limit of 1000 MB (also tried 999 and 500), and got the following error:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/6/1/3610f53c1e2c7fefbf91262a528302685181e68b.png)

Last time I checked, 18 MB are way less than 1000 🙂

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 30, 2024, 5:47pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/7 "2024-08-30T17:47:10Z")

</div>

Since 18 is larger than 10: Did you follow the steps in

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435):
>
> bookmark This guide explains how to change the maximum attachment upload size for self-hosted Discourse instances. person_raising_hand Required user level: System Admin The default attachment upload size limit is 10MB If you are self-hosting Discourse and need to allow uploads larger than 10 MB, follow the steps below. Changing the upload size Connect to your server: Use SSH to access your server’s command line interface. Edit the configuration file: Navigate to the configurati…

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [August 30, 2024, 5:50pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/8 "2024-08-30T17:50:16Z")

</div>

Oh wow, this is entirely unexpected. Thank you for pointing out the solution. (I didn’t try it yet, but I can’t see another issue.)

Indeed, it works. All you need is to pass the correct parameter in the configuration file to update the maximum file upload size:

```plaintext
params:
  ## Maximum upload size (default: 10m)
  upload_size: 20m

```

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [August 30, 2024, 7:20pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/9 "2024-08-30T19:20:07Z")

</div>

> [@hellekin](#):
>
> Last time I checked, 18 MB are way less than 1000 🙂

Would be good if they could change the alert for this I also got confused by that, or in admin settings mention there is a limit to how far that can be adjusted without changing settings in console.

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [August 30, 2024, 8:40pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/10 "2024-08-30T20:40:21Z")

</div>

it is no longer necessary to increase the limit in the nginx config too?

---

<div class="post-metadata">

### Author: ![fiedin](https://avatars.discourse-cdn.com/v4/letter/f/f14d63/32.png) [@fiedin](https://meta.discourse.org/u/fiedin)
#### Post date: [October 17, 2024, 6:36pm UTC](https://meta.discourse.org/t/max-upload-size-error/283622/11 "2024-10-17T18:36:27Z")

</div>

i followed the tutorial, but always get the message “is greater than the max allowed 1000 MB” at max attachment size.  
yup, changes at app.yaml , rebuild. still the same

so in this case was experimenting to insert 2GB file upload.
