-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Request.post() stores data in temp files #1469
Comments
I believe getting rid of temp files is the proper solution: we already have @popravich would you create a Pull Request? |
Will take a look this weekend |
@popravich did you look into this issue? |
Sorry, had no time yet |
I added new I do not think we should remove |
Ouch, now imagine containerized application running with readonly filesystem... |
Good point, I'll add config for that. |
on other hand it is same behavior as in 1.x versions |
added |
Long story short
web_reqrep.Request.post()
reads whole payload into memory and than stores uploads into temp files — implicitly by usingcgi.FieldStorage
.Expected behaviour
Either no temporary files or explicit behavior.
Actual behaviour
cgi.FieldStorage
creates temporary file for each upload (file).The
FieldStorage
docstring states the following:So it is possible to control how uploads are handled — either stored into temp files or any other way...
PS: python documentation is missing
FieldStorage
description.The text was updated successfully, but these errors were encountered: