-
-
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
multiple file upload with same key #433
Conversation
At least add a test please. |
sure will add do you want me to modiy test_client_request.py or should i add different test file |
@pankajnits I suggest adding new test to |
thanks added test case for this |
data = yield from request.post() | ||
files = data.getall('file') | ||
for _file in files: | ||
self.assertEqual(_file.file.closed, False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use self.assertFalse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like check for file content for example.
Say, on first cycle iteration it should be b'binary data 1'
and for second pass b'binary data 2'
thanks will incorporate this change |
multiple file upload with same key
Thanks! |
if multiple files are uploaded with same key , only last file descriptor is open and rest is closed