Two different types of upload in Gitea (see Config Cheat Sheet for more info):
- If uploading to repository, change
FILE_MAX_SIZE = 3under
- If uploading to issue/pull request, change
MAX_SIZE = 4under
Note: if using reverse proxy like nginx, you have to configure reverse proxy max upload size too. Otherwise, same issue will occur even with Gitea config change.
Ok, I tried it and succeeded. Thank you