1
0
Fork 0
gitea/modules
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 Fix `ref` for workflows triggered by `pull_request_target` (#25743) 2023-07-07 19:22:03 +00:00
activitypub Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
analyze
assetfs Skip unuseful error message in dev mode when watching local filesystem (#25919) 2023-07-17 09:47:55 +00:00
auth
avatar
base
cache Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
charset
container
context Revert package access change from #23879 (#25707) 2023-07-09 13:00:07 +00:00
csv
doctor Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
emoji
eventsource
generate
git Remove `git.FileBlame` (#25841) 2023-07-12 19:07:29 +02:00
gitgraph
graceful
hcaptcha
highlight Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
hostmatcher
html
httpcache
httplib
indexer Add open/closed field support for issue index (#25708) 2023-07-07 17:10:13 +00:00
issue/template
json
label
lfs
log
markup Disallow dangerous url schemes (#25960) 2023-07-18 15:18:37 +00:00
mcaptcha
metrics
migration
mirror
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
notification
options
packages Add support for different Maven POM encoding (#25873) 2023-07-14 09:39:15 +00:00
paginator
pprof
private
process
proxy
proxyprotocol
public Move public asset files to the proper directory (#25907) 2023-07-18 18:06:43 +02:00
queue Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
recaptcha
references
regexplru Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
repository
secret
session
setting Avoid creating directories when loading config (#25944) 2023-07-18 07:32:36 -05:00
sitemap
ssh
storage
structs Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
svg Move public asset files to the proper directory (#25907) 2023-07-18 18:06:43 +02:00
sync
system
templates
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util
validation
web Fix "Flash" message usage (#25895) 2023-07-15 11:52:03 +03:00
webhook