# Upload\_size in app.yml not working

**URL:** https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686
**Category:** Support
**Created:** [February 27, 2018, 6:21pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686 "2018-02-27T18:21:14Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)
#### Post date: [March 5, 2018, 5:49am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/21 "2018-03-05T05:49:03Z")

</div>

> [@sam](#):
>
> Very little value adding a box for 999mb

I think there is a continuum from 1 MB all the way to 999 MB.

It is a value judgement of where is the cut off as to what will discourse support. Please make this value judgement and document it in the manual (currently it seems around 75MB). I have spent over 5 hours trying to figure this out since the manual or the forums made it seem as if large file uploads were possible with discourse.

For me uploading 100MB takes less than 5 minutes and more and more people are going to have fast upload speeds.

> [@sam](#):
>
> if shutting the laptop during upload means you have to start from scratch.

I dont mind starting from scratch.

In my opinion discourse product should support large file HTTP uploads out of the box without trying to do resumable or anything fancy like that. Obviously its just one user so feel free to disregard it completely 🙂

> [@codinghorror](#):
>
> Discourse is many things but it is not a file storage repository, or a video sharing service…

Obviously a product designer has to say NO to develop a great product 🙂

As you make your decision as to what will discourse support please take my use case as one more data point.

I use discourse as a internal corporate forum and in my work I have had a need to upload files of upto 200MB.

> [@sam](#):
>
> , to support enormous uploads we need a completely different scheme

Is there a technical limitation in supporting large file uploads without anything fancy like resumable etc ?

---

<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: [March 5, 2018, 7:05am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/22 "2018-03-05T07:05:50Z")

</div>

> [@vikaskedia](#):
>
> Is there a technical limitation in supporting large file uploads without anything fancy like resumable etc ?

Yes there certainly is, the internet is a big reason this stuff explodes, streams get interrupted proxies get in the way and so on. If we are to support huge uploads there is no clean built in way to do it with NGINX. We need resumable stream and to upload in chunks.

---

<div class="post-metadata">

### Author: ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)
#### Post date: [March 5, 2018, 7:12am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/23 "2018-03-05T07:12:32Z")

</div>

> [@sam](#):
>
> the internet is a big reason this stuff explodes, streams get interrupted proxies get in the way and so on.

I would like to differ on this. I am able to upload 100+ MB files to a php based app running on the same server with 100% success rate.

I am sure there is something happening in the app side of discourse which is terminating the upload around 75MB.

I do not think the issue here is with internet or nginx. 🙂

---

<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: [March 5, 2018, 7:31am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/24 "2018-03-05T07:31:12Z")

</div>

> [@vikaskedia](#):
>
> I am sure there is something happening in the app side of discourse which is terminating the upload around 75MB.

The app is handed a file handle from NGINX, so somehow NGINX is timing out cause there is some sort of timeout missing that needs to be fiddled with or something else.

What you need to do is enter your container, fiddle with nginx configuration till it works using `sv nginx restart` each time you fiddle with it.

But, you are creating a very very fragile solution that in the real world ™ will fail, so I don’t see why we should invest much more time in this.

---

<div class="post-metadata">

### Author: ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)
#### Post date: [March 5, 2018, 11:47am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/25 "2018-03-05T11:47:57Z")

</div>

> [@sam](#):
>
> You are creating a very very fragile solution that in the real world ™ will fail,

I just tried uploading a 150MB file 10 times to a php app behind a nginx proxy and it worked flawlessly every-time. I am using latest chrome and I have a 10 Mbps upload speed in bay area.

So I think we might need to revise our assumption that in real world 100+ MB file upload with http is fragile.

> [@sam](#):
>
> I don’t see why we should invest much more time in this.

I love discourse the way it is. Its a great product and you as a co-founder have made a lot of good decisions to get it where it is.

I am trying to present a data point in the hope that you revise your current assumption that 100+ MB file upload over HTTP is fragile. 🙂

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [March 5, 2018, 4:54pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/26 "2018-03-05T16:54:45Z")

</div>

Faulty experimental logic aside, if code was written to handle sane values only might it be that the MB should be specified as GB instead?

Are you certain the headers are sending the correct block sizes?

---

<div class="post-metadata">

### Author: ![vikaskedia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vikaskedia/32/73333_2.png) [@vikaskedia](https://meta.discourse.org/u/vikaskedia)
#### Post date: [May 29, 2018, 8:48am UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/27 "2018-05-29T08:48:17Z")

</div>

> [@sam](#):
>
> I am sure there is something happening in the app side of discourse which is terminating the upload around 75MB.

Good news!! something has improved in the latest version I was able to upload a 712 MB file.

---

<div class="post-metadata">

### Author: ![dnsmichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dnsmichi/32/379505_2.png) [@dnsmichi](https://meta.discourse.org/u/dnsmichi)
#### Post date: [May 29, 2018, 5:58pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/28 "2018-05-29T17:58:16Z")

</div>

Maybe look into a different tool for managing and hosting such large data junks, e.g. [Nextcloud](https://nextcloud.com/). We’re using this at work for ourselves and customers.

---

<div class="post-metadata">

### Author: ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)
#### Post date: [February 12, 2019, 4:42pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/29 "2019-02-12T16:42:45Z")

</div>

Sily but im geting error then upoadin 85mb file eror sound like that you reached max upload size ( 100004500kb)  
😃 and dont cnow what to do 😃

---

<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: [February 12, 2019, 6:38pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/30 "2019-02-12T18:38:15Z")

</div>

There are other topics with similar problems. Last I tried I had trouble with files over about that size. If you want big uploads you should push them to a file sharing site.

---

<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: [March 4, 2022, 3:39pm UTC](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686/31 "2022-03-04T15:39:31Z")

</div>



[Previous page](https://meta.discourse.org/t/upload-size-in-app-yml-not-working/81686.md?page=1)
