0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 02:32:49 +01:00
gitea/routers/api/v1
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
..
activitypub Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
admin Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
misc Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
notify Fix bugs related to notification endpoints (#25548) 2023-06-28 10:26:56 -04:00
org Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
packages Add CRAN package registry (#22331) 2023-05-22 10:57:49 +08:00
repo Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Add API for changing Avatars (#25369) 2023-06-29 23:22:55 +00:00
user Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
utils New webhook trigger for receiving Pull Request review requests (#24481) 2023-05-24 22:06:27 -04:00
api.go For API attachments, use API URL (#25639) 2023-07-10 09:31:19 +00:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00