# How to change upload limit by command line

**URL:** https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231
**Category:** Support
**Created:** [June 23, 2024, 12:55am UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231 "2024-06-23T00:55:37Z")
**Posts on this page:** 6
**Page:** 1

<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: [June 23, 2024, 12:55am UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/1 "2024-06-23T00:55:37Z")

</div>

Good day,

There seems to be a bug with the video upload system, have set max file upload size to 75 mb for .mp4 but when attempting to upload a 36.1 MPEG-4 error reports:

 ![Screen Shot 2024-06-22 at 5.50.21 PM](https://global.discourse-cdn.com/meta/original/4X/0/4/1/0415a8600a4b77e3b3c1ac23e4fa4533da141c25.png)

I know video uploading isn’t really recommended/supported for discourse anyway but just reporting this seems to be a bug for if this is supposed to be able to work.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [June 23, 2024, 3:00am UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/2 "2024-06-23T03:00:37Z")

</div>

Is this a self-hosted site?

---

<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: [June 23, 2024, 4:40pm UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/3 "2024-06-23T16:40:41Z")

</div>

Yeah not discourse hosted 2gb memory server in Sydney:

 ![server](https://global.discourse-cdn.com/meta/original/4X/0/7/8/07844e03aa8323569fa08fea28a17e884ce94079.png)

---

<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: [June 23, 2024, 4:46pm UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/4 "2024-06-23T16:46:07Z")

</div>

Did you perform the steps in [Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435)?

---

<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: [June 23, 2024, 8:37pm UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/5 "2024-06-23T20:37:06Z")

</div>

Didn’t know about that requirement to change settings by command line, have set than now to 40 mb:

 ![command line](https://global.discourse-cdn.com/meta/original/4X/7/6/6/766ef52c84ffc12029bf9cfe3c950c1d258e470d.png)

Hope that formatting is correct will rebuild now.

Edit: works

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 23, 2024, 8:37pm UTC](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231/6 "2024-07-23T20:37:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
