Merge pull request #2399 from askholme/master

Fix for FileUploadParser with 3.x
This commit is contained in:
Tom Christie 2015-01-12 12:21:35 +00:00
commit fb0a434f9b

View File

@ -277,7 +277,7 @@ class FileUploadParser(BaseParser):
for index, handler in enumerate(upload_handlers):
file_obj = handler.file_complete(counters[index])
if file_obj:
return DataAndFiles(None, {'file': file_obj})
return DataAndFiles({}, {'file': file_obj})
raise ParseError("FileUpload parse error - "
"none of upload handlers can handle the stream")