0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-18 04:54:18 +01:00
gitea/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 For API attachments, use API URL (#25639) 2023-07-10 09:31:19 +00:00
agit
asymkey
attachment
auth Fix SSPI auth panic (#25955) 2023-07-18 17:32:49 +00:00
automerge
context
convert For API attachments, use API URL (#25639) 2023-07-10 09:31:19 +00:00
cron
externalaccount
forms
gitdiff
issue
lfs
mailer
markup
migrations
mirror
org
packages
pull Avoid amending the Rebase and Fast-forward merge if there is no message template (#25779) 2023-07-10 10:12:50 +02:00
release
repository Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
task Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
user fix incorrect repo url when changed the case of ownername (#25733) 2023-07-14 13:42:10 +08:00
webhook For API attachments, use API URL (#25639) 2023-07-10 09:31:19 +00:00
wiki