Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http r.MultipartForm.RemoveAll() not working at all #69354

Closed
Th0rum opened this issue Sep 9, 2024 · 3 comments
Closed

net/http r.MultipartForm.RemoveAll() not working at all #69354

Th0rum opened this issue Sep 9, 2024 · 3 comments

Comments

@Th0rum
Copy link

Th0rum commented Sep 9, 2024

Go version

go1.23.1 windows/amd64

Output of go env in your module/workspace:

irrelavant

What did you do?

call r.MultipartForm.RemoveAll() on windows, the temporary file will not be cleared. and net/http should be able to call this function automatically without user intervention at the first place. Many developers dont know this and clog their temp folder with gigabytes of data.

What did you see happen?

above

What did you expect to see?

above

@Th0rum
Copy link
Author

Th0rum commented Sep 9, 2024

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Sorry, I don't get it. It should be something that go handles automatically? or was there no plan to do so?

@seankhliao
Copy link
Member

see #58809, it can only automatically clean up if you don't interfere with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants