mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Add media_type to example file parser
This commit is contained in:
parent
f5ce7152ec
commit
0089f0faa7
|
@ -140,6 +140,7 @@ For example:
|
||||||
"""
|
"""
|
||||||
A naive raw file upload parser.
|
A naive raw file upload parser.
|
||||||
"""
|
"""
|
||||||
|
media_type = '*/*' # Accept anything
|
||||||
|
|
||||||
def parse(self, stream, media_type=None, parser_context=None):
|
def parse(self, stream, media_type=None, parser_context=None):
|
||||||
content = stream.read()
|
content = stream.read()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user