mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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.
|
||||
"""
|
||||
media_type = '*/*' # Accept anything
|
||||
|
||||
def parse(self, stream, media_type=None, parser_context=None):
|
||||
content = stream.read()
|
||||
|
|
Loading…
Reference in New Issue
Block a user