# Why is my upload limit 100mb?It's set to 500mb

**URL:** https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446
**Category:** Support
**Created:** [October 7, 2023, 11:39am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446 "2023-10-07T11:39:38Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 11:39am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/26 "2023-10-09T11:39:30Z")

</div>

I’ve been working on this for 4 days now, but no matter how I set it up, I can’t upload videos larger than 100mb. Every time I get a message that the file exceeds the 500mb limit.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [October 9, 2023, 12:26pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/27 "2023-10-09T12:26:46Z")

</div>

Just curiosly asking, what happens if you set it to 0 instead of 500m?

I mean 0 and not 0m

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 12:36pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/28 "2023-10-09T12:36:07Z")

</div>

I’ll try it now.

---

<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 9, 2023, 12:56pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/29 "2023-10-09T12:56:25Z")

</div>

Does that extra space before semicolon mean something?

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 12:58pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/30 "2023-10-09T12:58:08Z")

</div>

![QQ截图20231009205507](https://global.discourse-cdn.com/meta/original/4X/6/1/b/61bc5c6a112b497a633693159d63c66d476b403a.png)  
I changed it to 0 this time and then set 1000MB on the admin page, rebuild app  
uploaded a 101mb video and it still says it’s over 1000MB.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 1:10pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/31 "2023-10-09T13:10:38Z")

</div>

I deleted the space.

 ![20231009210732](https://global.discourse-cdn.com/meta/original/4X/0/a/4/0a440462aa5b3eed0d0ad857f24e75df98801a6c.png)

The problem now is that video files larger than 100mb cannot be uploaded.  
Although Discourse’s file settings are already in effect at 1000mb, the internal logic is actually still limited to the maximum value of the image…

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 1:34pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/32 "2023-10-09T13:34:24Z")

</div>

Can you guys test your site, set the other attachment sizes to 1G and try uploading a 101mb video and see if it uploads?

---

<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 9, 2023, 1:40pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/33 "2023-10-09T13:40:49Z")

</div>

You have a [standard install](https://meta.discourse.org/t/142537?silent=true) and do not have a reverse proxy in place?

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 1:45pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/34 "2023-10-09T13:45:06Z")

</div>

It is a standard installation, no other reverse proxy is used.  
The problem is that the size of other attachments is also limited by the size of the image

---

<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 9, 2023, 1:56pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/35 "2023-10-09T13:56:59Z")

</div>

So if you increase the max image size you can upload bigger videos?

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 2:01pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/36 "2023-10-09T14:01:28Z")

</div>

No, this 102400kb is set by Discourse system, I didn’t set the size of the image, it’s still the default 4096kb, I’ve already set the size of my other attachments to 500mb and it’s also effective, but in fact, when uploading the video, it will still be stuck at the maximum size of the image.

 ![Z8KV~CMX5G5HIG~EMBF7K](https://global.discourse-cdn.com/meta/original/4X/5/7/d/57d9867b30eea582a33df04d4c61f9deda579ba4.png)

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 9, 2023, 2:03pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/37 "2023-10-09T14:03:58Z")

</div>

So I’d like you to try and see if there’s a bug in Discourse.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [October 9, 2023, 4:23pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/38 "2023-10-09T16:23:04Z")

</div>

I see that it’s a generic error when the webserver can’t handle the upload size.

It seems to be a good idea to use `client_max_body_size 0;`, but was nginx _fully_ restarted?

I would ensure `upload_size` is set to 0 and rebuild the app to clear any changes.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 9, 2023, 10:05pm UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/39 "2023-10-09T22:05:51Z")

</div>

If you are looking to support massive files you need to set up direct to s3 uploads the site setting `enable_direct_s3_uploads` needs to be enabled for that to work.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 10, 2023, 12:23am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/40 "2023-10-10T00:23:15Z")

</div>

I’ve tried turning s3 on and off and can’t upload files over 100mb.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 10, 2023, 3:11am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/41 "2023-10-10T03:11:19Z")

</div>

I tried deleting Discourse and reinstalling it to restore the data. Still can’t upload files over 100m.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 10, 2023, 3:22am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/42 "2023-10-10T03:22:28Z")

</div>

> [@sam](#):
>
> `enable_direct_s3_uploads`

Is the above setting enabled?

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 10, 2023, 3:41am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/43 "2023-10-10T03:41:34Z")

</div>

I’ve set it up so that even small files can be synchronized to the s3.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [October 10, 2023, 7:06am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/44 "2023-10-10T07:06:27Z")

</div>

Where do I set it? I can upload large files. But the large files are local and not synchronized to s3.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 10, 2023, 7:12am UTC](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446/45 "2023-10-10T07:12:50Z")

</div>

It’s a hidden setting, open a rails console

```plaintext
cd /var/discourse/
./launcher enter app
rails c

```

and do

`SiteSetting.enable_direct_s3_uploads = true`

[Previous page](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446.md?page=1)

[Next page](https://meta.discourse.org/t/why-is-my-upload-limit-100mb-its-set-to-500mb/281446.md?page=3)
