Skip to content

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented May 4, 2022

Fix #19595

Golang's mime/multipart/formdata.go caches files on disk, these temp files should be removed by caller when request finishes if we cloned the http.Request

Tested and work as expected

@wxiaoguang wxiaoguang added this to the 1.17.0 milestone May 4, 2022
@wxiaoguang wxiaoguang added skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. backport/done All backports for this PR have been created backport/v1.16 labels May 4, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 5, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 5, 2022
@6543
Copy link
Member

6543 commented May 5, 2022

🚀

@6543 6543 merged commit 04fc4b7 into go-gitea:main May 5, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 5, 2022
* giteaofficial/main:
  Call MultipartForm.RemoveAll when request finishes (go-gitea#19606)
  Remove `RequireHighlightJS` field, update plantuml example. (go-gitea#19615)
  [skip ci] Updated translations via Crowdin
  PullService lock via pullID (go-gitea#19520)
@wxiaoguang wxiaoguang deleted the fix-large-form-tmp-file branch May 5, 2022 15:12
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gitea leaves large uploads in /tmp
5 participants