# Increase size for release files

**URL:** <https://forum.gitea.com/t/increase-size-for-release-files/7113>\
**Category:** Install/Maintain/Configure\
**Created:** [April 18, 2023, 3:53pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113 "2023-04-18T15:53:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmagician](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dmagician/32/5051_2.png) [@dmagician](https://forum.gitea.com/u/dmagician)\
**Post date:** [April 18, 2023, 3:53pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/1 "2023-04-18T15:53:30Z")

</div>

Can the file size for a release be increased to more then 20MB?

---

<div class="post-metadata">

**Author:** ![delvh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/delvh/32/5047_2.png) [@delvh](https://forum.gitea.com/u/delvh)\
**Post date:** [April 18, 2023, 4:43pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/2 "2023-04-18T16:43:34Z")

</div>

See [Config Cheat Sheet - Docs](https://docs.gitea.io/en-us/config-cheat-sheet/#issue-and-pull-request-attachments-attachment) `MAX_SIZE`.

---

<div class="post-metadata">

**Author:** ![dmagician](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dmagician/32/5051_2.png) [@dmagician](https://forum.gitea.com/u/dmagician)\
**Post date:** [April 18, 2023, 5:03pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/3 "2023-04-18T17:03:31Z")

</div>

Hi.

Changedthe value to 50 and restarted gitea, with no effect…

Still limited to 20MB (the last value I’ve set)…

BTW, gitea is latest, v19.1

Thanks.

---

<div class="post-metadata">

**Author:** ![delvh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/delvh/32/5047_2.png) [@delvh](https://forum.gitea.com/u/delvh)\
**Post date:** [April 18, 2023, 5:15pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/4 "2023-04-18T17:15:52Z")

</div>

That sounds weird.  
Do you have a reverse proxy or something similar in front of Gitea?

---

<div class="post-metadata">

**Author:** ![dmagician](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dmagician/32/5051_2.png) [@dmagician](https://forum.gitea.com/u/dmagician)\
**Post date:** [April 18, 2023, 5:45pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/5 "2023-04-18T17:45:57Z")

</div>

No (AFAIK), gitea is running on non dedicated windows 2019 server.

Most of the settings are default.

Thanks.

---

<div class="post-metadata">

**Author:** ![dmagician](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dmagician/32/5051_2.png) [@dmagician](https://forum.gitea.com/u/dmagician)\
**Post date:** [April 19, 2023, 12:24pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/6 "2023-04-19T12:24:38Z")

</div>

Hi.

Found it…

The value is determined by _MAX\_SIZE_ under _[attachment]_ section, and not

Not by _FILE\_MAX\_SIZE_ under _[repository.upload]_ section…

Looks like it should be the latter…

Maybe someone from @gitea developers will look at this and clarify it?

---

<div class="post-metadata">

**Author:** ![delvh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/delvh/32/5047_2.png) [@delvh](https://forum.gitea.com/u/delvh)\
**Post date:** [April 19, 2023, 12:49pm UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/7 "2023-04-19T12:49:09Z")

</div>

Well… Thanks for reading my comment above?  
That is exactly the config option I referenced?

The other value you mentioned is when you want to upload a file directly into your repository code instead of as an attachment.

---

<div class="post-metadata">

**Author:** ![dmagician](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dmagician/32/5051_2.png) [@dmagician](https://forum.gitea.com/u/dmagician)\
**Post date:** [April 20, 2023, 6:08am UTC](https://forum.gitea.com/t/increase-size-for-release-files/7113/8 "2023-04-20T06:08:32Z")

</div>

Thank you for your response.

I wasn’t meant to be un-polite…

In the docs’ there are quite a few \*\*MAX\_SIZE settings, I got confused for a while…

Again, thank you for your response, and my apologies if you were offended by me…
