aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/parsers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py
index 7eb92184..27a0db65 100644
--- a/rest_framework/parsers.py
+++ b/rest_framework/parsers.py
@@ -269,6 +269,7 @@ class FileUploadParser(BaseParser):
file_obj = handler.file_complete(counters[i])
if file_obj:
return DataAndFiles(None, {'file': file_obj})
+ raise ParseError("FileUpload parse error - none of upload handlers can handle the stream")
def get_filename(self, stream, media_type, parser_context):
"""