How set upload file size for releases? #7885

Closed
opened 2025-11-02 07:40:19 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @typefile on GitHub (Sep 23, 2021).

Feature Description

Do this:

file: custom/conf/app.ini

[repository.upload]
FILE_MAX_SIZE = 4096
MAX_FILES = 10

It was successful.
But, it's Code upload file size.

I want set Release upload file size, it limited to 4MB.


Windows server
gitea 1.15.3
MS Sql Server

Screenshots

No response

Originally created by @typefile on GitHub (Sep 23, 2021). ### Feature Description # Do this: file: `custom/conf/app.ini` ``` [repository.upload] FILE_MAX_SIZE = 4096 MAX_FILES = 10 ``` It was successful. But, it's `Code` upload file size. I want set `Release` upload file size, it limited to 4MB. ----------------------------------------- Windows server gitea 1.15.3 MS Sql Server ### Screenshots _No response_
GiteaMirror added the issue/needs-feedback label 2025-11-02 07:40:19 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Sep 23, 2021):

image

Maybe here?


[attachment]
;; Max size of each file. Defaults to 4MB
;MAX_SIZE = 4

@wxiaoguang commented on GitHub (Sep 23, 2021): ![image](https://user-images.githubusercontent.com/2114189/134452718-b8c4708a-edac-4c27-8328-1e03afda302d.png) Maybe here? ``` [attachment] ;; Max size of each file. Defaults to 4MB ;MAX_SIZE = 4 ```
Author
Owner

@typefile commented on GitHub (Sep 23, 2021):

图片

也许在这里?


[attachment]
;; Max size of each file. Defaults to 4MB
;MAX_SIZE = 4

Very thankful !

[attachment]
MAX_SIZE = 1024
@typefile commented on GitHub (Sep 23, 2021): > ![图片](https://user-images.githubusercontent.com/2114189/134452718-b8c4708a-edac-4c27-8328-1e03afda302d.png) > > 也许在这里? > > ``` > > [attachment] > ;; Max size of each file. Defaults to 4MB > ;MAX_SIZE = 4 > ``` Very thankful ! ``` [attachment] MAX_SIZE = 1024 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7885