diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index ef72677ce0..1efab85bac 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -250,7 +250,7 @@ def parse(self, stream, media_type=None, parser_context=None): None, encoding) if result is not None: - return DataAndFiles(None, {'file': result[1]}) + return DataAndFiles({}, {'file': result[1]}) # This is the standard case. possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size]