# Cannot attach file to release

**URL:** <https://forum.gitea.com/t/cannot-attach-file-to-release/6769>\
**Category:** Gitea Usages\
**Created:** [February 22, 2023, 12:48pm UTC](https://forum.gitea.com/t/cannot-attach-file-to-release/6769 "2023-02-22T12:48:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brancott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/brancott/32/4107_2.png) [@brancott](https://forum.gitea.com/u/brancott)\
**Post date:** [February 22, 2023, 12:48pm UTC](https://forum.gitea.com/t/cannot-attach-file-to-release/6769/1 "2023-02-22T12:48:12Z")

</div>

Hi guys, I have a problem with attachments in my gitea docker, I can only add very small files, like lesser than 1MB. Bigger don’t go through with no warnings or errors, they’re just not there when I open my relese.  
I’ve changed upload limit in app.ini

[attachment]  
ENABLED = true  
ALLOWED\_TYPES =  
PATH = /data/gitea/attachments  
MAX\_SIZE = 4000  
MAX\_FILES = 5

and

[repository.upload]  
TEMP\_PATH = /data/gitea/uploads  
FILE\_MAX\_SIZE = 40000  
ALLOWED\_TYPES =  
MAX\_FILES = 5

and rebuilt my docker but still no luck. Is there something else I should edit?

---

<div class="post-metadata">

**Author:** ![jake](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jake](https://forum.gitea.com/u/jake)\
**Post date:** [February 22, 2023, 6:56pm UTC](https://forum.gitea.com/t/cannot-attach-file-to-release/6769/2 "2023-02-22T18:56:29Z")

</div>

How are you connecting to Gitea? Is it just your `your browser -> Gitea` or is there a reverse proxy somewhere in between? This issue is typically due to a reverse proxy having a stricter upload limit than Gitea and just discarding the file before it ever gets to Gitea.

---

<div class="post-metadata">

**Author:** ![brancott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/brancott/32/4107_2.png) [@brancott](https://forum.gitea.com/u/brancott)\
**Post date:** [February 27, 2023, 8:01am UTC](https://forum.gitea.com/t/cannot-attach-file-to-release/6769/3 "2023-02-27T08:01:52Z")

</div>

Yes, it was nginx limiting the uploaded file’s size. Thank!
