Change default size of issue/pr attachments and repo file#27946
Merged
lunny merged 3 commits intogo-gitea:mainfrom Nov 13, 2023
Merged
Change default size of issue/pr attachments and repo file#27946lunny merged 3 commits intogo-gitea:mainfrom
lunny merged 3 commits intogo-gitea:mainfrom
Conversation
Member
|
How about 50MiB which is also the default on GitHub currently? We do want to find some reasonable default values that prevent abuse from uploading too large files. Edit: 50 MiB is limit for repo files, but I guess it will work just as well as a reasonable default for attachments etc. |
Member
Author
Member
Author
|
BTW, the alert of the file exceeding limits is broken. Haven't found out root reason yet but it's probably because the function gitea/web_src/js/features/common-global.js Lines 199 to 253 in 481e738 Edited: fixed in #27985 |
Member
|
Right, releases need a separate bigger limit. GitHub has this at 2GB per file currently. |
silverwind
approved these changes
Nov 13, 2023
wxiaoguang
approved these changes
Nov 13, 2023
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this pull request
Nov 13, 2023
…7946) As title. Some attachments and file sizes can easily be larger than these limits
6543
pushed a commit
that referenced
this pull request
Nov 13, 2023
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Nov 14, 2023
* upstream/main: fixed duplicate attachments on dump on windows (go-gitea#28019) [skip ci] Updated translations via Crowdin packages: Calculate package size quota using package creator ID instead of owner ID (go-gitea#28007) Dont leak private users via extensions (go-gitea#28023) Improve profile for Organizations (go-gitea#27982) Enable system users search via the API (go-gitea#28013) Enable system users for comment.LoadPoster (go-gitea#28014) Change default size of issue/pr attachments and repo file (go-gitea#27946) Fix missing mail reply address (go-gitea#27997)
silverwind
pushed a commit
that referenced
this pull request
Nov 17, 2023
#27946 forgets to change them in code. Sorry about that.
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this pull request
Nov 17, 2023
go-gitea#27946 forgets to change them in code. Sorry about that.
silverwind
pushed a commit
that referenced
this pull request
Nov 17, 2023
fuxiaohei
pushed a commit
to fuxiaohei/gitea
that referenced
this pull request
Jan 17, 2024
…7946) As title. Some attachments and file sizes can easily be larger than these limits
fuxiaohei
pushed a commit
to fuxiaohei/gitea
that referenced
this pull request
Jan 17, 2024
go-gitea#27946 forgets to change them in code. Sorry about that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

As title. Some attachments and file sizes can easily be larger than these limits