mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Pass {} as data to DataAndFiles, as it ends up in a MergeDict
In the same vein as #2399.
This commit is contained in:
parent
b07d931261
commit
a1fa7218eb
|
@ -250,7 +250,7 @@ class FileUploadParser(BaseParser):
|
||||||
None,
|
None,
|
||||||
encoding)
|
encoding)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
return DataAndFiles(None, {'file': result[1]})
|
return DataAndFiles({}, {'file': result[1]})
|
||||||
|
|
||||||
# This is the standard case.
|
# This is the standard case.
|
||||||
possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size]
|
possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user