0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-24 15:19:18 -05:00
forgejo/services
wxiaoguang 236c645bf1
Refactor "Content" for file uploading (#25851)
Before: the concept "Content string" is used everywhere. It has some
problems:

1. Sometimes it means "base64 encoded content", sometimes it means "raw
binary content"
2. It doesn't work with large files, eg: uploading a 1G LFS file would
make Gitea process OOM

This PR does the refactoring: use "ContentReader" / "ContentBase64"
instead of "Content"

This PR is not breaking because the key in API JSON is still "content":
`` ContentBase64 string `json:"content"` ``
2023-07-18 18:14:47 +00:00
..
actions
agit
asymkey
attachment
auth Fix SSPI auth panic (#25955) 2023-07-18 17:32:49 +00:00
automerge
context
convert
cron
externalaccount
forms
gitdiff
issue
lfs
mailer
markup
migrations
mirror
org
packages
pull
release
repository Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
task
user fix incorrect repo url when changed the case of ownername (#25733) 2023-07-14 13:42:10 +08:00
webhook
wiki